Add json2.js polyfill (v2014-02-04; with module skip function)
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 18 Jun 2014 20:20:37 +0000 (22:20 +0200)
committerKrinkle <krinklemail@gmail.com>
Wed, 25 Jun 2014 14:17:36 +0000 (14:17 +0000)
commitcde08292271efc0d1b0fe66ed2aff232d349824c
treebb17d2f0c0432436f58dd0ebcae8a2940a845c1f
parent8e98f9e3e6c557ad75c9e2b00115e784aa335026
Add json2.js polyfill (v2014-02-04; with module skip function)

Source from https://github.com/douglascrockford/JSON-js/blob/3d7767b/json2.js

* Deprecate jquery.json which is a little dated and less efficient
  because it always downloads the entire polyfill to the client
  even if it isn't needed. We also can't add a skip function to
  jquery.json because it exposes a different interface ($.toJSON
  instead of JSON.stringify).

* Update 'mediawiki.inspect' to use 'json' instead.

* Update 'jquery.jStorage' to use 'json' instead (doesn't need
  a change to its code as it looks for either JSON.stringify or
  $.toJSON by design).

Change-Id: I8978be3491b08fbbfd83f1306e816b1b20f16161
RELEASE-NOTES-1.24
resources/Resources.php
resources/lib/json2/json2.js [new file with mode: 0644]
resources/src/jquery.json-deprecate.js [new file with mode: 0644]
resources/src/json-skip.js [new file with mode: 0644]
resources/src/mediawiki/mediawiki.inspect.js
tests/frontend/Gruntfile.js