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

Only reading index properties of the rules array #7

Merged
merged 1 commit into from Mar 13, 2012
Merged

Conversation

jxa
Copy link
Contributor

@jxa jxa commented Mar 13, 2012

Some libraries extend native arrays with additional properties, causing for (var i in arr) loops to iterate of non-index properties and in my case (with Ember.js) causing obscure errors.

Using explicit indices in the for loop fixed my issue.

mde added a commit that referenced this pull request Mar 13, 2012
Only reading index properties of the rules array
@mde mde merged commit 51db759 into mde:master Mar 13, 2012
@mde
Copy link
Owner

mde commented Mar 13, 2012

Merged, thanks.

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.

None yet

2 participants