Commit 266facc0 authored by InfinitiesLoop's avatar InfinitiesLoop Committed by John Resig

Ticket 6808. Updated per code review comments by jeresig

parent 9faab0b7
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment