Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…dditional superfluous function.
  • Loading branch information...
commit 2cc03a86fc046e81013d32a662f4043f1c10b436 1 parent 2ed8170
@csnover csnover authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/data.js
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.