emberjs/ember.js — Issue #553: Ember changes behavior of Array iteration
Author: eishay
Created: 2012-02-29 23:22:54+00:00
State: open

When Ember is in scope javascript iterates over an array in the following fashion:
```javascript
var a = [1,2,3]
for (var i in a) {$('body').append(i + '
');}
```
it enumerates methods of the array prototype as in:
```javascript
0
1
2
isEnumerable
nextObject
firstObject
...
```
Naturally it breaks few libraries in scope.
Here are examples with and without Ember in scope:
https://tinker.io/2f148/4
https://tinker.io/7ed87/1