X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fdata.js;h=9fee459a2a44426080247e1406e0c73147085b8b;hp=faa44f3de1f43aeab2f481afc291555f286750ae;hb=d92dc2902c1e49642ce5148f7e082d880e77a2c5;hpb=b46dff39c35ae05f92f6909ff8d07aa470e4a8d4 diff --git a/src/data.js b/src/data.js index faa44f3..9fee459 100644 --- a/src/data.js +++ b/src/data.js @@ -63,9 +63,7 @@ jQuery.extend({ } if ( !cache[ id ] ) { - // Use a Function as the cache object instead of an Object on JS objects - // as a hack to prevent JSON.stringify from serializing it (#8108) - cache[ id ] = isNode ? {} : function () {}; + cache[ id ] = {}; } // An object can be passed to jQuery.data instead of a key/value pair; this gets