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.
This commit is contained in:
Brion Vibber 2011-06-09 00:20:13 +00:00
parent 033f8b84c0
commit 85ec51cce0

View file

@ -606,7 +606,7 @@ if ( args[0] == 'addModule' && typeof args[1] != 'undefined' ) {
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 );