Use jQuery's $.isArray, not instanceof Array. The later has troubles with cross-frame...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 08:40:34 +0000 (08:40 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 12 Aug 2011 08:40:34 +0000 (08:40 +0000)
resources/jquery/jquery.mwExtension.js

index 82ca924..39273c1 100644 (file)
@@ -43,7 +43,7 @@ jQuery.extend({
                        return false;
                }
                for ( var i = 0; i < arrThis.length; i++ ) {
-                       if ( arrThis[i] instanceof Array ) {
+                       if ( $.isArray(arrThis[i]) ) {
                                if ( !$.compareArray( arrThis[i], arrAgainst[i] ) ) {
                                        return false;
                                }