yui/yui3 — pull request #328 by juandopazo (2012-10-29 20:57:11+00:00)
Title: JSON conditional loading

Hi!

The current browser/server landscape has had native JSON support for a while with no interoperation issues (that I know of). So it's a good moment to move to loading the JavaScript implementation of `Y.JSON` only when needed. This pull request is a refactoring of Y.JSON which adds `-shim` submodules that are loaded conditionally based on the tests that were already in the YUI code.

Although loading a module when native JSON is present could be avoided, I think this first approach is a good enough compromise based on the current state of conditional loading in YUI. This topic was discussed in the following ticket: http://yuilibrary.com/projects/yui3/ticket/2528564

Please let me know if you'd want me to send a pull request with less commits, without builds or anything like that.