-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
$broadcast not working in some instances #474
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
It seems to fix itself when you reset ( |
When you change |
What I mean is they don’t receive broadcast events at all - no matter when they fire. Also the It took me a bit of diving though the chrome script debugging tool to find this! |
Wow, can't believe how stupid this bug is... you'll know why if you look at the fix commit :P |
Haha, splice removing 0 elements... nice! |
It actually deletes all elements after that index! (hence the empty _children array) |
Oh wow, learn something every day |
I have a case where I dynamically create a list of components:
After adding something to the list (
this.actions.push('some-component')
), then changing an element (this.actions = ['some-other-component']
) - that component will no longer receive$broadcast
events.Let me know if you have issues reproducing this.
The text was updated successfully, but these errors were encountered: