Update jQuery.data to use jQuery.noop for toJSON hack instead of an additional superfluous function.
This commit is contained in:
parent
2ed81708bd
commit
2cc03a86fc
|
@ -68,9 +68,7 @@ jQuery.extend({
|
||||||
// TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
|
// TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
|
||||||
// metadata on plain JS objects when the object is serialized using
|
// metadata on plain JS objects when the object is serialized using
|
||||||
// JSON.stringify
|
// JSON.stringify
|
||||||
cache[ id ].toJSON = function () {
|
cache[ id ].toJSON = jQuery.noop;
|
||||||
return undefined;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// An object can be passed to jQuery.data instead of a key/value pair; this gets
|
// An object can be passed to jQuery.data instead of a key/value pair; this gets
|
||||||
|
|
Loading…
Reference in a new issue