build: Enable jscs rule 'requireDotNotation' and make pass

Change-Id: I2586e6959c3bbc7e4204242fc65551747c0e25a9
This commit is contained in:
James D. Forrester 2015-08-19 10:26:19 -07:00
parent 2efec36a10
commit 06cdfe7acb
3 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,6 @@
{
"preset": "wikimedia",
"requireDotNotation": null,
"requireSpacesInsideBrackets": null,
"requireVarDeclFirst": null,
"jsDoc": null

View file

@ -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 );

View file

@ -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;
};
/**