mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Ticket 6808. Updated per code review comments by jeresig
This commit is contained in:
parent
9faab0b74f
commit
266facc08a
@ -51,7 +51,7 @@ jQuery.extend({
|
||||
} else {
|
||||
cache[ id ] = function() {
|
||||
return jQuery.extend(true, {}, name);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
} else if ( !cache[ id ] ) {
|
||||
@ -61,15 +61,12 @@ jQuery.extend({
|
||||
var store = {};
|
||||
cache[ id ] = function() {
|
||||
return store;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
thisCache = cache[ id ];
|
||||
if ( !isNode ) {
|
||||
thisCache = thisCache();
|
||||
}
|
||||
thisCache = isNode? cache[ id ] : cache[ id ]();
|
||||
|
||||
// Prevent overriding the named cache with undefined values
|
||||
if ( data !== undefined ) {
|
||||
|
Loading…
Reference in New Issue
Block a user