Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | // If you want to add buttons, use |
11 | 11 | // mw.toolbar.addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId, selectText ); |
12 | 12 | addButton : function() { |
13 | | - if ( isReady ) { |
| 13 | + if ( this.isReady ) { |
14 | 14 | this.insertButton.apply( this, arguments ); |
15 | 15 | } else { |
16 | 16 | this.buttons.push( [].slice.call( arguments ) ); |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | |
50 | 50 | onReady : function() { |
51 | 51 | this.$toolbar = $( '#toolbar' ); |
52 | | - isReady = true; |
| 52 | + this.isReady = true; |
53 | 53 | // Legacy |
54 | 54 | // Merge buttons from mwCustomEditButtons |
55 | 55 | var buttons = [].concat( this.buttons, window.mwCustomEditButtons ); |