Skip to content

Commit

Permalink
forEachActiveView allows view release during iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
rogueSkib committed Nov 7, 2014
1 parent 9c4f871 commit d81b3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/ViewPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ exports = Class(function () {
this.forEachActiveView = function(fn, ctx) {
var views = this._views;
var f = bind(ctx, fn);
for (var i = 0, len = this._freshViewIndex; i < len; i++) {
for (var i = this._freshViewIndex - 1; i >= 0; i--) {
f(views[i], i);
}
};
Expand Down

0 comments on commit d81b3be

Please sign in to comment.