From d42c8b528eb595101954f478e0024e3f079f6fbf Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 22 Mar 2017 19:19:26 +0100 Subject: first implementation of fun stats site --- templates/assets/jquery/src/ajax/parseJSON.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/assets/jquery/src/ajax/parseJSON.js (limited to 'templates/assets/jquery/src/ajax/parseJSON.js') diff --git a/templates/assets/jquery/src/ajax/parseJSON.js b/templates/assets/jquery/src/ajax/parseJSON.js new file mode 100644 index 0000000..11918b0 --- /dev/null +++ b/templates/assets/jquery/src/ajax/parseJSON.js @@ -0,0 +1,13 @@ +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; + +} ); -- cgit v1.3.1