Fix to prevent potential memory leak, dunno if that actually helps
[jquery.git] / src / event / event.js
index 7a61773..6d88983 100644 (file)
@@ -1597,6 +1597,7 @@ new function(){
                        var handler = function() {
                                // unbind itself when executed
                                element.unbind(o, handler);
+                               element = null;
                                // apply original handler with the same arguments
                                f.apply(this, arguments);
                        };