Remove obsolete aliases from closures

Bug: T208951
Change-Id: I64c2966b7c41d6b2b1911e2fb52e4c7364bf7964
This commit is contained in:
Ed Sanders 2018-11-12 13:19:41 +00:00
parent f9614332a1
commit 7604581cc1
5 changed files with 13 additions and 10 deletions

View file

@ -1,14 +1,12 @@
{
"extends": "wikimedia",
"env": {
"browser": true,
"jquery": true
"browser": true
},
"globals": {
"mediaWiki": false,
"CodeMirror": false,
"ve": false,
"mw": false,
"$": false,
"OO": false
},
"rules": {

View file

@ -1,4 +1,4 @@
( function ( mw, $ ) {
( function () {
var useCodeMirror, codeMirror, api, originHooksTextarea, cmTextSelection,
enableContentEditable = true;
@ -284,4 +284,4 @@
}
} );
}( mediaWiki, jQuery ) );
}() );

View file

@ -2,7 +2,7 @@
* MediaWiki CodeMirror tests.
*/
( function ( $, mw ) {
( function () {
/**
* Keys are the titles of the test cases. Each has an 'input' and the expected 'output'.
* @type {Object}
@ -135,4 +135,4 @@
} );
} );
} );
}( jQuery, mediaWiki ) );
}() );

View file

@ -0,0 +1,5 @@
{
"globals": {
"ve": false
}
}

View file

@ -1,4 +1,4 @@
( function ( ve, mw ) {
( function () {
mw.libs.ve.targetLoader.addPlugin( function () {
var index,
target = ve.init.mw.DesktopArticleTarget;
@ -8,4 +8,4 @@
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
}
} );
}( ve, mediaWiki ) );
}() );