mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Remove obsolete aliases from closures
Bug: T208951 Change-Id: Ie84c06e4a69923a5993b173d490bfa97189c285b
This commit is contained in:
parent
421e9ef7d7
commit
e453114f55
|
@ -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": {}
|
||||||
|
|
|
@ -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 ) );
|
}() );
|
||||||
|
|
|
@ -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 ) );
|
}() );
|
||||||
|
|
|
@ -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 ) );
|
}() );
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
( function ( $, mw ) {
|
( function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
mw.thanks = {
|
mw.thanks = {
|
||||||
|
@ -62,4 +62,4 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}( jQuery, mediaWiki ) );
|
}() );
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
( function ( $ ) {
|
( function () {
|
||||||
/** @class jQuery */
|
/** @class jQuery */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -54,4 +54,4 @@
|
||||||
|
|
||||||
return $elements;
|
return $elements;
|
||||||
};
|
};
|
||||||
}( jQuery ) );
|
}() );
|
||||||
|
|
|
@ -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 ) );
|
}() );
|
||||||
|
|
Loading…
Reference in a new issue