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",
"env": {
"browser": true,
"jquery": true,
"qunit": true
},
"globals": {
"mediaWiki": false,
"mw": false,
"$": false,
"OO": false
},
"rules": {}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
( function ( $, mw ) {
( function () {
QUnit.module( 'Thanks mobilediff' );
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.' );
} );
}( jQuery, mediaWiki ) );
}() );