mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Create private methods for processing data/removeData requests. Fixes #12519, Closes gh-976
This commit is contained in:
@@ -58,8 +58,8 @@ jQuery.extend({
|
||||
var key = type + "queueHooks";
|
||||
return jQuery._data( elem, key ) || jQuery._data( elem, key, {
|
||||
empty: jQuery.Callbacks("once memory").add(function() {
|
||||
jQuery.removeData( elem, type + "queue", true );
|
||||
jQuery.removeData( elem, key, true );
|
||||
jQuery._removeData( elem, type + "queue" );
|
||||
jQuery._removeData( elem, key );
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user