Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

For in loop breaks when object is of type Enumerable #2

Merged
merged 1 commit into from
Jan 26, 2017

Conversation

jfcsantos
Copy link
Contributor

Apparently for-in loops through the enumerable properties of an object, not the indexes of an array. We came up with this issue when trying to integrate compact view in the Magento plugin, the latter depends on the prototype.js library which extends the Array object and adds a few extra functions which are traversable in this for in loop.

@happylinks happylinks merged commit d156601 into develop Jan 26, 2017
@happylinks happylinks deleted the dsf-for-loop-fix branch January 26, 2017 10:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants