yavsc/testOauthClient/wwwroot/lib/jquery/src/ajax/parseJSON.js

13 lines
222 B
JavaScript
Raw Normal View History

2016-06-12 01:32:51 +02:00
define([
"../core"
], function( jQuery ) {
// Support: Android 2.3
// Workaround failure to string-cast null input
jQuery.parseJSON = function( data ) {
return JSON.parse( data + "" );
};
return jQuery.parseJSON;
});