summaryrefslogtreecommitdiff
path: root/minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-24 17:12:23 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-24 17:12:23 +0100
commit54b8482223288a4d5df41267f3c9235bab06c15e (patch)
tree2df9f4e43168ab4fcda02e67740bf9772985eb5a /minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js
parenta2d5335f18e053c14e8f88efa5f97368777341be (diff)
downloadmeta-54b8482223288a4d5df41267f3c9235bab06c15e.tar.gz
meta-54b8482223288a4d5df41267f3c9235bab06c15e.zip
add minionlivesmatter
Diffstat (limited to 'minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js')
-rw-r--r--minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js b/minionlivesmatter/templates/assets/jquery/src/ajax/parseJSON.js
new file mode 100644
index 0000000..11918b0
--- /dev/null
+++ b/minionlivesmatter/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;
+
+} );