Fix some gaps in the handling of event data properties. Thanks to @jitter in ff6ceadbfd
for the catches.
This commit is contained in:
parent
9ced9f288c
commit
783bb2a85f
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
|
@ -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." );
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue