From: Daniel Friesen Date: Fri, 12 Aug 2011 08:40:34 +0000 (+0000) Subject: Use jQuery's $.isArray, not instanceof Array. The later has troubles with cross-frame... X-Git-Tag: 1.31.0-rc.0~28331 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=033b9cd5e2b465697bb5733acaddbe3db267a881;p=lhc%2Fweb%2Fwiklou.git Use jQuery's $.isArray, not instanceof Array. The later has troubles with cross-frame Array instances, and doesn't use the ES5 native method. --- 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; }