diff options
Diffstat (limited to 'src/ajax/parseJSON.js')
-rw-r--r-- | src/ajax/parseJSON.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ajax/parseJSON.js b/src/ajax/parseJSON.js index e8c449bca..3a96d15b9 100644 --- a/src/ajax/parseJSON.js +++ b/src/ajax/parseJSON.js @@ -2,7 +2,11 @@ define([ "../core" ], function( jQuery ) { -jQuery.parseJSON = JSON.parse; +// Support: Android 2.3 +// Workaround failure to string-cast null input +jQuery.parseJSON = function( data ) { + return JSON.parse( data + "" ); +}; return jQuery.parseJSON; |