Commit 76123ec
committed
Protect against libraries that extend Array.prototype
for (var ... in ...) loops should always check if the property being iterated isn't borrowed from somewhere else.
In this particular case, the code breaks if used in the same environment as old versions of PrototypeJS.1 parent 7e6da09 commit 76123ec
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
0 commit comments