]> source.dussan.org Git - jquery.git/commitdiff
Fix some gaps in the handling of event data properties. Thanks to @jitter in ff6ceadb...
authorJohn Resig <jeresig@gmail.com>
Wed, 13 Oct 2010 00:56:46 +0000 (20:56 -0400)
committerJohn Resig <jeresig@gmail.com>
Wed, 13 Oct 2010 00:56:46 +0000 (20:56 -0400)
src/event.js
test/unit/event.js

index 1bbf1348dd8fd54ba6d4ccb3614dc87a071db247..8a40d0020161fb869a312b190fb78fa260f69d23 100644 (file)
@@ -286,7 +286,7 @@ jQuery.event = {
                        delete elemData.handle;
 
                        if ( typeof elemData === "function" ) {
-                               jQuery.removeData( elem, "events" );
+                               jQuery.removeData( elem, eventKey );
 
                        } else if ( jQuery.isEmptyObject( elemData ) ) {
                                jQuery.removeData( elem );
index b37b253a89d889e8793ae22f01cda27b4d10da63..6f753225da70b90349427cf70648ee860e8487c7 100644 (file)
@@ -1838,7 +1838,7 @@ test("window resize", function() {
                ok( true, "Resize event fired." );
        }).resize().unbind("resize");
 
-       ok( !jQuery(window).data("events"), "Make sure all the events are gone." );
+       ok( !jQuery(window).data("__events__"), "Make sure all the events are gone." );
 });
 
 /*