Followup to 86603 per CR: Fix var declaration of i
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 21 Apr 2011 09:03:04 +0000 (09:03 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 21 Apr 2011 09:03:04 +0000 (09:03 +0000)
resources/mediawiki.action/mediawiki.action.edit.js

index 6d93e9c..61c1bfe 100644 (file)
@@ -38,7 +38,7 @@
                        // If you want to add buttons, use 
                        // $( document ).ready( function () { mw.toolbar.addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId, selectText ) } );
                        var c;
-                       for ( i = 0; i < window.mwCustomEditButtons.length; i++ ) {
+                       for ( var i = 0; i < window.mwCustomEditButtons.length; i++ ) {
                                c = window.mwCustomEditButtons[i];
                                mw.toolbar.addButton( c.imageFile, c.speedTip, c.tagOpen, c.tagClose, c.sampleText, c.imageId, c.selectText );
                        }