mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
parent
984f77a930
commit
a96d5bed58
@ -276,7 +276,7 @@ jQuery.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
cleanData: function( elems ) {
|
cleanData: function( elems ) {
|
||||||
var data, elem, events, type, key, j,
|
var data, elem, type, key,
|
||||||
special = jQuery.event.special,
|
special = jQuery.event.special,
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
@ -285,9 +285,8 @@ jQuery.extend({
|
|||||||
key = elem[ data_priv.expando ];
|
key = elem[ data_priv.expando ];
|
||||||
|
|
||||||
if ( key && (data = data_priv.cache[ key ]) ) {
|
if ( key && (data = data_priv.cache[ key ]) ) {
|
||||||
events = Object.keys( data.events || {} );
|
if ( data.events ) {
|
||||||
if ( events.length ) {
|
for ( type in data.events ) {
|
||||||
for ( j = 0; (type = events[j]) !== undefined; j++ ) {
|
|
||||||
if ( special[ type ] ) {
|
if ( special[ type ] ) {
|
||||||
jQuery.event.remove( elem, type );
|
jQuery.event.remove( elem, type );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user