Skip to content

Conversation

@sophiebits
Copy link
Collaborator

Fixes #1105.

@sophiebits
Copy link
Collaborator Author

cc @yungsters @Daniel15

@sophiebits sophiebits added this to the 0.9 milestone Feb 17, 2014
@Daniel15
Copy link
Member

Thanks for fixing this! I actually had a task for this assigned to me internally at Facebook, but I wasn't sure of the best way to fix it.

@sophiebits
Copy link
Collaborator Author

I'm not super thrilled with this, but it works. If it's okay for the parent events to be fired first then we could also write it as a recursive function without the array, which might be a little cleaner.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used, is this doing something magical?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, no.

petehunt added a commit that referenced this pull request Feb 18, 2014
Prevent error thrown when removing event target
@petehunt petehunt merged commit 8ac5975 into facebook:master Feb 18, 2014
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.

handleTopLevel can throw when removing event target

4 participants