http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84206

Revision: 84206
Author:   janpaul123
Date:     2011-03-17 22:17:34 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Small improvement by Krinkle

Modified Paths:
--------------
    trunk/extensions/InlineEditor/jquery.json.js

Modified: trunk/extensions/InlineEditor/jquery.json.js
===================================================================
--- trunk/extensions/InlineEditor/jquery.json.js        2011-03-17 22:13:38 UTC 
(rev 84205)
+++ trunk/extensions/InlineEditor/jquery.json.js        2011-03-17 22:17:34 UTC 
(rev 84206)
@@ -29,8 +29,8 @@
      **/
     $.toJSON = function(o)
     {
-        if (typeof(JSON) == 'object' && JSON.stringify)
-            return JSON.stringify(o);
+        if (typeof window.JSON == 'object' && window.JSON.stringify)
+            return window.JSON.stringify(o);
         
         var type = typeof(o);
     


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to