Fix typo in word compatibility
[lhc/web/wiklou.git] / resources / src / mediawiki.toolbar / toolbar.js
index 9ee499c..827ef01 100644 (file)
@@ -84,7 +84,7 @@
        /**
         * @private
         * @property {Array}
-        * Contains button objects (and for backwards compatibilty, it can
+        * Contains button objects (and for backwards compatibility, it can
         * also contains an arguments array for insertButton).
         */
        queue = [];
                                buttons = slice.call( arguments );
                        }
                        if ( isReady ) {
-                               $.each( buttons, function () {
-                                       insertButton( this );
+                               buttons.forEach( function ( button ) {
+                                       insertButton( button );
                                } );
                        } else {
                                // Push each button into the queue
 
        // Expose API publicly
        // @deprecated since MW 1.29
-       mw.log.deprecate( mw, 'toolbar', toolbar );
+       mw.log.deprecate( mw, 'toolbar', toolbar, null, 'mw.toolbar' );
 
        $( function () {
                var i, button;