Remove unused variables from closures
authorFomafix <fomafix@googlemail.com>
Tue, 19 Sep 2017 03:42:26 +0000 (05:42 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 19 Sep 2017 04:25:16 +0000 (06:25 +0200)
Change-Id: I5d2e0cd423a4080677f8517bcf3dcee10bf44799

resources/src/mediawiki.special/mediawiki.special.changeslist.visitedstatus.js
resources/src/mediawiki.special/mediawiki.special.preferences.convertmessagebox.js
resources/src/mediawiki.widgets/MediaSearch/mw.widgets.MediaSearchQueue.js
resources/src/mediawiki.widgets/mw.widgets.TitleSearchWidget.js
resources/src/mediawiki/mediawiki.checkboxtoggle.js
tests/qunit/suites/resources/jquery/jquery.makeCollapsible.test.js
tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js
tests/qunit/suites/resources/mediawiki/mediawiki.errorLogger.test.js

index 954e074..6b25327 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * JavaScript for Special:Watchlist
  */
-( function ( mw, $ ) {
+( function ( $ ) {
        $( function () {
                $( '.mw-changeslist-line-watched .mw-title a' ).on( 'click', function () {
                        $( this )
@@ -9,4 +9,4 @@
                                .removeClass( 'mw-changeslist-line-watched' );
                } );
        } );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
index cee7382..e6b7432 100644 (file)
@@ -1,9 +1,9 @@
 /*!
  * JavaScript for Special:Preferences: Check for successbox to replace with notifications.
  */
-( function ( mw, $ ) {
+( function ( $ ) {
        $( function () {
                var convertmessagebox = require( 'mediawiki.notification.convertmessagebox' );
                convertmessagebox();
        } );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
index 7ee98bb..3639525 100644 (file)
@@ -4,7 +4,7 @@
  * @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
  * @license The MIT License (MIT); see LICENSE.txt
  */
-( function ( $, mw ) {
+( function ( mw ) {
 
        /**
         * MediaWiki media resource queue.
@@ -79,4 +79,4 @@
        mw.widgets.MediaSearchQueue.prototype.getSearchQuery = function () {
                return this.getParams().gsrsearch;
        };
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );
index 5ba9481..cd937f7 100644 (file)
@@ -4,7 +4,7 @@
  * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
  * @license The MIT License (MIT); see LICENSE.txt
  */
-( function ( $, mw ) {
+( function ( mw ) {
 
        /**
         * Creates an mw.widgets.TitleSearchWidget object.
                return response.query || {};
        };
 
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );
index 36090ea..76bc86c 100644 (file)
@@ -9,7 +9,7 @@
  * Jeroen De Dauw <jeroendedauw at gmail dot com>
  */
 
-( function ( mw, $ ) {
+( function ( $ ) {
        'use strict';
 
        $( function () {
@@ -35,4 +35,4 @@
 
        } );
 
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
index 0c91e43..d51dc37 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function ( $ ) {
        var loremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.';
 
        QUnit.module( 'jquery.makeCollapsible', QUnit.newMwEnvironment() );
 
                $clone.find( '.mw-collapsible-toggle a' ).trigger( 'click' );
        } );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
index 35b6b71..14c2bb4 100644 (file)
@@ -1,4 +1,4 @@
-( function ( mw, $ ) {
+( function ( $ ) {
        QUnit.module( 'mediawiki.special.recentchanges', QUnit.newMwEnvironment() );
 
        // TODO: verify checkboxes == [ 'nsassociated', 'nsinvert' ]
@@ -61,4 +61,4 @@
                // DOM cleanup
                $env.remove();
        } );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
index 46d7837..2a4d991 100644 (file)
@@ -1,4 +1,4 @@
-( function ( $, mw ) {
+( function ( mw ) {
        QUnit.module( 'mediawiki.errorLogger', QUnit.newMwEnvironment() );
 
        QUnit.test( 'installGlobalHandler', function ( assert ) {
@@ -39,4 +39,4 @@
                assert.strictEqual( w.onerror( errorMessage, errorUrl, errorLine ), true,
                        'Global handler preserves true return from previous handler' );
        } );
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );