chernikovalexey/Prevel — Issue #10: each() function works backwards
Author: herbdaily
Created: 2012-01-27 22:32:47+00:00
State: open

Hi,

Since I have an unrelated pull request pending, I thought I'd put this in as an issue. In my tree, I've change the each() method to read as follows:

```
each: function(arr, func) {
var key = -1;
while(++key < arr.length) {
// `this` ought to contains the current value
func.call(arr[key], key, arr[key]);
}
}
```

The old way caused my page to be rendered backwards so I hope you are ok with this.

Thanks,

-Herb