aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2011-02-08 12:13:27 -0600
committerColin Snover <github.com@zetafleet.com>2011-02-08 12:13:27 -0600
commitd92dc2902c1e49642ce5148f7e082d880e77a2c5 (patch)
tree27ddd52d87ae3c207024c75d48a486223440014e /src/data.js
parentb46dff39c35ae05f92f6909ff8d07aa470e4a8d4 (diff)
downloadjquery-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.js4
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