From 033b9cd5e2b465697bb5733acaddbe3db267a881 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Fri, 12 Aug 2011 08:40:34 +0000 Subject: [PATCH] Use jQuery's $.isArray, not instanceof Array. The later has troubles with cross-frame Array instances, and doesn't use the ES5 native method. --- resources/jquery/jquery.mwExtension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/jquery/jquery.mwExtension.js b/resources/jquery/jquery.mwExtension.js index 82ca92491e..39273c1d99 100644 --- a/resources/jquery/jquery.mwExtension.js +++ b/resources/jquery/jquery.mwExtension.js @@ -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; } -- 2.20.1