Create private methods for processing data/removeData requests. Fixes #12519, Closes gh-976

This commit is contained in:
carldanley
2012-10-16 11:15:41 -04:00
committed by Rick Waldron
parent 2e3ca6ca46
commit 08e134548f
5 changed files with 196 additions and 185 deletions

View File

@@ -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 );
})
});
}