Sunday 15 September 2013

javascript - How To Replace jQuery 1.9.1's $.parseJSON function with the implementation from jQuery 1.8.3 -


jQuery has changed it into version 1.9.0 in the implementation of $ .parseJSON and we really do JQuery is dependent on previous versions of Perce blank and empty strings, eg JQuery will not throttle an exception and will return a blank value to the faucet and empty string.

We want to use the latest version of jQuery, which is 1.9.1 at the time of writing, but the implementation of $ .parseJSON.

Documentation that explains changes with jQuery:

Is there a javascript that we can use it to tell jQuery instead of the "natural" version of the $ .parseJSON function. With the same name as the second implementation / function ... from jQuery 1.8.3 version?

The implementation of the function is required.

If you want to, do this:

  jQuery._parseJSON = JQuery.parseJSON; JQuery.parseJSON = Function (data) {if (! Data = data type! == "string") {return tap; } Return jQuery._parseJSON (data); }    

No comments:

Post a Comment