mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Optimize cleanData: allow direct access to data_priv for cleanup
This commit is contained in:
committed by
Dave Methvin
parent
5e8a5f4adc
commit
c1b8edfcc9
@@ -185,7 +185,9 @@ Data.prototype = {
|
||||
);
|
||||
},
|
||||
discard: function( owner ) {
|
||||
delete this.cache[ this.key( owner ) ];
|
||||
if ( owner[ this.expando ] ) {
|
||||
delete this.cache[ owner[ this.expando ] ];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user