From d92dc2902c1e49642ce5148f7e082d880e77a2c5 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 8 Feb 2011 12:13:27 -0600 Subject: 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). --- src/data.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/data.js') 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 -- cgit v1.2.3