Skip to content

Commit

Permalink
Fix to prevent potential memory leak, dunno if that actually helps
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Oct 27, 2006
1 parent 4e5b46f commit 8b87505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/event/event.js
Expand Up @@ -1597,6 +1597,7 @@ new function(){
var handler = function() { var handler = function() {
// unbind itself when executed // unbind itself when executed
element.unbind(o, handler); element.unbind(o, handler);
element = null;
// apply original handler with the same arguments // apply original handler with the same arguments
f.apply(this, arguments); f.apply(this, arguments);
}; };
Expand Down

0 comments on commit 8b87505

Please sign in to comment.