Skip to content

Commit

Permalink
* Adding 'i in fns' for removeEvents [#1043]
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Oct 19, 2010
1 parent 2d1d169 commit f77774c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Source/Class/Class.Extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ this.Events = new Class({
for (type in this.$events){
if (events && events != type) continue;
var fns = this.$events[type];
for (var i = fns.length; i--;) this.removeEvent(type, fns[i]);
for (var i = fns.length; i--;) if (i in fns){
this.removeEvent(type, fns[i]);
}
}
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion Specs
Submodule Specs updated 1 files
+3 −0 1.3client/Class/Class.Extras.js

0 comments on commit f77774c

Please sign in to comment.