Fix to prevent potential memory leak, dunno if that actually helps
This commit is contained in:
parent
4e5b46f7f6
commit
8b875055ec
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue