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

Revision: 89757
Author:   brion
Date:     2011-06-09 00:20:13 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
Fix for WikiEditor iframe extension on IE: use $.inArray() instead of 
Array.indexOf(), which is not in earlier JS standards as implemented in IE 8.

Use of Array.indexOf was added in r74271 when the iframe bits were broken out 
to an extension.

Modified Paths:
--------------
    trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js

Modified: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js
===================================================================
--- trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js    2011-06-08 
23:28:49 UTC (rev 89756)
+++ trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js    2011-06-09 
00:20:13 UTC (rev 89757)
@@ -606,7 +606,7 @@
                        for ( var e in $.wikiEditor.extensions ) {
                                if (
                                        $.wikiEditor.isRequired( 
$.wikiEditor.modules[module], e ) &&
-                                       context.extensions.indexOf( e ) === -1
+                                       $.inArray( e, context.extensions ) === 
-1
                                ) {
                                        
context.extensions[context.extensions.length] = e;
                                $.wikiEditor.extensions[e]( context );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to