thelounge/client/components/jquery/src/ajax/parseJSON.js
2014-06-17 17:04:57 +02:00

14 lines
222 B
JavaScript

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;
});