Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle handlers no longer defer to scene-graph parents. #1001

Merged
merged 1 commit into from
Jun 10, 2019
Merged

Conversation

manthey
Copy link
Contributor

@manthey manthey commented May 9, 2019

Parents still wait for all children to be idle.

Before, if a map had multiple layers, for instance, oneLayer.onIdle would wait for all layers and the map to be idle before triggering. Now, oneLayer.onIdle will only wait for that layer and its children. mainMap.onIdle will wait for all of the layers and their children as before.

This is useful, for instance, if you have two tile layers and you wish to trigger a function when one of the tile layers is fully loaded without waiting for the second tile layer. You can still wait for both by using map.onIdle.

Parents still wait for all children to be idle.

Before, if a map had multiple layers, for instance, `oneLayer.onIdle`
would wait for all layers and the map to be idle before triggering.
Now, `oneLayer.onIdle` will only wait for that layer and its children.
`mainMap.onIdle` will wait for all of the layers and their children as
before.

This is useful, for instance, if you have two tile layers and you wish
to trigger a function when one of the tile layers is fully loaded
without waiting for the second tile layer.  You can still wait for both
by using `map.onIdle`.
@manthey manthey merged commit 6a667d8 into master Jun 10, 2019
@manthey manthey deleted the idle-children branch June 10, 2019 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants