mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-18 00:30:30 +00:00
Remove obsolete aliases from closures
Bug: T208951 Change-Id: I64c2966b7c41d6b2b1911e2fb52e4c7364bf7964
This commit is contained in:
parent
f9614332a1
commit
7604581cc1
|
@ -1,14 +1,12 @@
|
||||||
{
|
{
|
||||||
"extends": "wikimedia",
|
"extends": "wikimedia",
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true
|
||||||
"jquery": true
|
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"mediaWiki": false,
|
|
||||||
"CodeMirror": false,
|
"CodeMirror": false,
|
||||||
"ve": false,
|
|
||||||
"mw": false,
|
"mw": false,
|
||||||
|
"$": false,
|
||||||
"OO": false
|
"OO": false
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
( function ( mw, $ ) {
|
( function () {
|
||||||
var useCodeMirror, codeMirror, api, originHooksTextarea, cmTextSelection,
|
var useCodeMirror, codeMirror, api, originHooksTextarea, cmTextSelection,
|
||||||
enableContentEditable = true;
|
enableContentEditable = true;
|
||||||
|
|
||||||
|
@ -284,4 +284,4 @@
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
}( mediaWiki, jQuery ) );
|
}() );
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* MediaWiki CodeMirror tests.
|
* MediaWiki CodeMirror tests.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
( function ( $, mw ) {
|
( function () {
|
||||||
/**
|
/**
|
||||||
* Keys are the titles of the test cases. Each has an 'input' and the expected 'output'.
|
* Keys are the titles of the test cases. Each has an 'input' and the expected 'output'.
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
|
@ -135,4 +135,4 @@
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
}( jQuery, mediaWiki ) );
|
}() );
|
||||||
|
|
5
resources/modules/ve-cm/.eslintrc.json
Normal file
5
resources/modules/ve-cm/.eslintrc.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"globals": {
|
||||||
|
"ve": false
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
( function ( ve, mw ) {
|
( function () {
|
||||||
mw.libs.ve.targetLoader.addPlugin( function () {
|
mw.libs.ve.targetLoader.addPlugin( function () {
|
||||||
var index,
|
var index,
|
||||||
target = ve.init.mw.DesktopArticleTarget;
|
target = ve.init.mw.DesktopArticleTarget;
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
|
target.static.actionGroups[ 1 ].include.splice( index, 0, 'codeMirror' );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
}( ve, mediaWiki ) );
|
}() );
|
||||||
|
|
Loading…
Reference in a new issue