Merge "selenium: invoke jobs to enforce eventual consistency"
[lhc/web/wiklou.git] / resources / src / mediawiki.toolbar / toolbar.js
index d55ed80..be49d26 100644 (file)
@@ -4,7 +4,7 @@
  * @class mw.toolbar
  * @singleton
  */
-( function ( mw, $ ) {
+( function () {
        var toolbar, isReady, $toolbar, queue, slice, $currentFocused;
 
        /**
@@ -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
                } );
        } );
 
-}( mediaWiki, jQuery ) );
+}() );