Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | // Merge buttons from mwCustomEditButtons |
44 | 44 | var buttons = [].concat( this.buttons, window.mwCustomEditButtons ); |
45 | 45 | for ( var i = 0; i < buttons.length; i++ ) { |
46 | | - if ( buttons[i] instanceof Array ) { |
| 46 | + if ( $.isArray( buttons[i] ) ) { |
47 | 47 | // Passes our button array as arguments |
48 | 48 | mw.toolbar.insertButton.apply( this, buttons[i] ); |
49 | 49 | } else { |