diff options
author | Colin Snover <github.com@zetafleet.com> | 2011-02-08 12:13:27 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2011-02-08 12:13:27 -0600 |
commit | d92dc2902c1e49642ce5148f7e082d880e77a2c5 (patch) | |
tree | 27ddd52d87ae3c207024c75d48a486223440014e /src/data.js | |
parent | b46dff39c35ae05f92f6909ff8d07aa470e4a8d4 (diff) | |
download | jquery-d92dc2902c1e49642ce5148f7e082d880e77a2c5.tar.gz jquery-d92dc2902c1e49642ce5148f7e082d880e77a2c5.zip |
Revert portions of 7acb141ed7f2dedd950bb65acf878098640d081e that attempt to use a function to hide jQuery metadata from JSON.stringify since this does not work reliably cross-browser (fails in Fx3.5, O11, Saf4).
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/data.js b/src/data.js index faa44f3de..9fee459a2 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 |