diff options
author | Colin Snover <github.com@zetafleet.com> | 2011-02-14 16:30:18 -0600 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2011-02-14 16:30:18 -0600 |
commit | 2cc03a86fc046e81013d32a662f4043f1c10b436 (patch) | |
tree | 4474ae96e8550b37ed4c27f1a1f0d9aa2785e712 | |
parent | 2ed81708bdacfd4b97b77baef67ad8b75205dd20 (diff) | |
download | jquery-2cc03a86fc046e81013d32a662f4043f1c10b436.tar.gz jquery-2cc03a86fc046e81013d32a662f4043f1c10b436.zip |
Update jQuery.data to use jQuery.noop for toJSON hack instead of an additional superfluous function.
-rw-r--r-- | src/data.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/data.js b/src/data.js index 66d229256..6efe7b01d 100644 --- a/src/data.js +++ b/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 |