mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
build: Enable jscs rule 'requireDotNotation' and make pass
Change-Id: I2586e6959c3bbc7e4204242fc65551747c0e25a9
This commit is contained in:
parent
2efec36a10
commit
06cdfe7acb
1
.jscsrc
1
.jscsrc
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"preset": "wikimedia",
|
||||
|
||||
"requireDotNotation": null,
|
||||
"requireSpacesInsideBrackets": null,
|
||||
"requireVarDeclFirst": null,
|
||||
"jsDoc": null
|
||||
|
|
|
@ -166,9 +166,9 @@ ve.dm.MWMediaResourceProvider.prototype.fetchAPIresults = function ( howMany ) {
|
|||
return [];
|
||||
}
|
||||
|
||||
if ( data[ 'continue' ] ) {
|
||||
if ( data.continue ) {
|
||||
// Update the offset for next time
|
||||
provider.setOffset( data[ 'continue' ].gsroffset );
|
||||
provider.setOffset( data.continue.gsroffset );
|
||||
} else {
|
||||
// This is the last available set of results. Mark as depleted!
|
||||
provider.toggleDepleted( true );
|
||||
|
|
|
@ -208,7 +208,7 @@ ve.dm.MWTemplateSpecModel.prototype.getParameterDescription = function ( name, l
|
|||
* @returns {string} Default parameter value
|
||||
*/
|
||||
ve.dm.MWTemplateSpecModel.prototype.getParameterDefaultValue = function ( name ) {
|
||||
return this.params[name]['default'];
|
||||
return this.params[name].default;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue