Commit 2cc03a86 authored by Colin Snover's avatar Colin Snover

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

Update jQuery.data to use jQuery.noop for toJSON hack instead of an additional superfluous function.
parent 2ed81708
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment