mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "build: Bump devDependencies to latest and make pass"
This commit is contained in:
commit
4837373545
6
.jscsrc
6
.jscsrc
|
@ -17,5 +17,9 @@
|
|||
"requireNewlineAfterDescription": true,
|
||||
"requireParamTypes": true,
|
||||
"requireReturnTypes": true
|
||||
}
|
||||
},
|
||||
|
||||
"excludeFiles": [
|
||||
"modules/ve-mw/init/classListSkipFunction.js"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
* Adapted from http://purl.eligrey.com/github/classList.js/blob/master/classList.js
|
||||
*/
|
||||
return !!(
|
||||
'classList' in document.createElement( '_' ) &&
|
||||
!(
|
||||
document.createElementNS &&
|
||||
!( 'classList' in document.createElementNS( 'http://www.w3.org/2000/svg', 'g' ) )
|
||||
)
|
||||
);
|
||||
'classList' in document.createElement( '_' ) &&
|
||||
!(
|
||||
document.createElementNS &&
|
||||
!( 'classList' in document.createElementNS( 'http://www.w3.org/2000/svg', 'g' ) )
|
||||
)
|
||||
);
|
||||
|
|
|
@ -1724,9 +1724,9 @@ ve.init.mw.ArticleTarget.prototype.maybeShowWelcomeDialog = function () {
|
|||
if ( prefSaysShow ) {
|
||||
new mw.Api().saveOption( 'visualeditor-hidebetawelcome', '1' );
|
||||
|
||||
// No need to set a cookie every time for logged-in users that have already
|
||||
// set the hidebetawelcome=1 preference, but only if this isn't a one-off
|
||||
// view of the page via the hiding GET parameter.
|
||||
// No need to set a cookie every time for logged-in users that have already
|
||||
// set the hidebetawelcome=1 preference, but only if this isn't a one-off
|
||||
// view of the page via the hiding GET parameter.
|
||||
} else if ( !usePrefs && !urlSaysHide ) {
|
||||
try {
|
||||
localStorage.setItem( 've-beta-welcome-dialog', 1 );
|
||||
|
|
|
@ -117,7 +117,7 @@ ve.ui.MWAceEditorWidget.prototype.setupEditor = function () {
|
|||
*
|
||||
* @param {string} mode Symbolic name of autocomplete mode
|
||||
*/
|
||||
ve.ui.MWAceEditorWidget.prototype.setAutocomplete = function ( mode ) {
|
||||
ve.ui.MWAceEditorWidget.prototype.setAutocomplete = function ( mode ) {
|
||||
var widget = this;
|
||||
this.autocomplete = mode;
|
||||
this.loadingPromise.done( function () {
|
||||
|
@ -127,7 +127,7 @@ ve.ui.MWAceEditorWidget.prototype.setupEditor = function () {
|
|||
} );
|
||||
} );
|
||||
return this;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
|
|
|
@ -84,7 +84,7 @@ OO.inheritClass( ve.ui.MWTocWidget, OO.ui.Widget );
|
|||
*
|
||||
* @param {ve.dm.MetaItem} metaItem
|
||||
*/
|
||||
ve.ui.MWTocWidget.prototype.onMetaListInsert = function ( metaItem ) {
|
||||
ve.ui.MWTocWidget.prototype.onMetaListInsert = function ( metaItem ) {
|
||||
// Responsible for adding UI components
|
||||
if ( metaItem instanceof ve.dm.MWTOCForceMetaItem ) {
|
||||
// show
|
||||
|
|
10
package.json
10
package.json
|
@ -9,16 +9,16 @@
|
|||
"postdoc": "grunt copy:jsduck"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-polyfill": "6.8.0",
|
||||
"babel-polyfill": "6.9.1",
|
||||
"grunt": "1.0.1",
|
||||
"grunt-banana-checker": "0.5.0",
|
||||
"grunt-contrib-copy": "1.0.0",
|
||||
"grunt-contrib-jshint": "1.0.0",
|
||||
"grunt-contrib-watch": "1.0.0",
|
||||
"grunt-jscs": "2.8.0",
|
||||
"grunt-jsonlint": "1.0.7",
|
||||
"grunt-stylelint": "0.3.0",
|
||||
"grunt-jscs": "3.0.0",
|
||||
"grunt-jsonlint": "1.0.8",
|
||||
"grunt-stylelint": "0.4.0",
|
||||
"grunt-tyops": "0.1.0",
|
||||
"stylelint-config-wikimedia": "0.2.0"
|
||||
"stylelint-config-wikimedia": "0.2.2"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue