Skip to content
Permalink
Browse files

Update jQuery.data to use jQuery.noop for toJSON hack instead of an a…

…dditional superfluous function.
  • Loading branch information
csnover committed Feb 14, 2011
1 parent 2ed8170 commit 2cc03a86fc046e81013d32a662f4043f1c10b436
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/data.js
@@ -68,9 +68,7 @@ jQuery.extend({
// TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
// metadata on plain JS objects when the object is serialized using
// JSON.stringify
cache[ id ].toJSON = function () {
return undefined;
};
cache[ id ].toJSON = jQuery.noop;
}

// An object can be passed to jQuery.data instead of a key/value pair; this gets

0 comments on commit 2cc03a8

Please sign in to comment.
You can’t perform that action at this time.