Remove obsolete aliases from closures

Bug: T208951
Change-Id: Ie84c06e4a69923a5993b173d490bfa97189c285b
This commit is contained in:
Ed Sanders 2018-11-12 19:22:46 +00:00
parent 421e9ef7d7
commit e453114f55
7 changed files with 14 additions and 14 deletions

View file

@ -2,11 +2,11 @@
"extends": "wikimedia", "extends": "wikimedia",
"env": { "env": {
"browser": true, "browser": true,
"jquery": true,
"qunit": true "qunit": true
}, },
"globals": { "globals": {
"mediaWiki": false, "mw": false,
"$": false,
"OO": false "OO": false
}, },
"rules": {} "rules": {}

View file

@ -1,4 +1,4 @@
( function ( $, mw, OO ) { ( function () {
'use strict'; 'use strict';
function reloadThankedState() { function reloadThankedState() {
@ -120,4 +120,4 @@
mw.hook( 'wikipage.diff' ).add( function ( $content ) { mw.hook( 'wikipage.diff' ).add( function ( $content ) {
addActionToLinks( $content ); addActionToLinks( $content );
} ); } );
}( jQuery, mediaWiki, OO ) ); }() );

View file

@ -1,4 +1,4 @@
( function ( $, mw, OO ) { ( function () {
'use strict'; 'use strict';
var $thankedLabel = $( '<span></span>' ) var $thankedLabel = $( '<span></span>' )
@ -82,4 +82,4 @@
sendFlowThanks( $thankLink ); sendFlowThanks( $thankLink );
} ); } );
}( jQuery, mediaWiki, OO ) ); }() );

View file

@ -1,4 +1,4 @@
( function ( mw, $ ) { ( function () {
/** /**
* Attempt to execute a thank operation for a given edit * Attempt to execute a thank operation for a given edit
* *
@ -105,4 +105,4 @@
mw.thanks = $.extend( {}, mw.thanks || {}, { mw.thanks = $.extend( {}, mw.thanks || {}, {
_mobileDiffInit: init _mobileDiffInit: init
} ); } );
}( mediaWiki, jQuery ) ); }() );

View file

@ -1,4 +1,4 @@
( function ( $, mw ) { ( function () {
'use strict'; 'use strict';
mw.thanks = { mw.thanks = {
@ -62,4 +62,4 @@
} }
}; };
}( jQuery, mediaWiki ) ); }() );

View file

@ -1,4 +1,4 @@
( function ( $ ) { ( function () {
/** @class jQuery */ /** @class jQuery */
/** /**
@ -54,4 +54,4 @@
return $elements; return $elements;
}; };
}( jQuery ) ); }() );

View file

@ -1,4 +1,4 @@
( function ( $, mw ) { ( function () {
QUnit.module( 'Thanks mobilediff' ); QUnit.module( 'Thanks mobilediff' );
QUnit.test( 'render button for logged in users', function ( assert ) { QUnit.test( 'render button for logged in users', function ( assert ) {
@ -12,4 +12,4 @@
assert.strictEqual( $container.find( '.mw-ui-button' ).length, 1, 'Thanks button was created.' ); assert.strictEqual( $container.find( '.mw-ui-button' ).length, 1, 'Thanks button was created.' );
} ); } );
}( jQuery, mediaWiki ) ); }() );