Fix to prevent potential memory leak, dunno if that actually helps
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 27 Oct 2006 08:23:25 +0000 (08:23 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 27 Oct 2006 08:23:25 +0000 (08:23 +0000)
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);
                        };