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
Use appropriate for loop on preEventDeliveryQueue array instead of for…in #5762
Use appropriate for loop on preEventDeliveryQueue array instead of for…in #5762
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to replicate the error. My browsers probably doesn't have that problem. It works fine with the update too. 👍
wasnt able to reproduce bug it works properly, maybe someone can test and be able to reproduce bug |
Cannot replicate an error too. Maybe any specific settings? |
@dongilbert Any comments? |
No comment |
Looks good, discussed with David, merging. |
Description:
for...in
loops do not work consistently across browsers when using them to iterate over an array. They are not guaranteed to always return in the same order and doing that style of loop on an array returns all properties of the array, not just the numeric indexed items.This bug was introduced with this commit: a6150e8#diff-33b07c1d837daff498f70f652062659eR215
Steps to reproduce the bug:
mtc.js
#<Object> is not a function
Steps to test this PR: