mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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 New Issue
Block a user