Fix eslint warnings

This commit is contained in:
RainLoop Team 2016-04-20 20:12:51 +03:00
parent dd824179f1
commit 72ca818500
35 changed files with 510 additions and 290 deletions

View file

@ -27,7 +27,7 @@ class AbstracRadio extends AbstractComponent
if (params.values)
{
this.values(_.map(params.values, (label, value) => {
return {'label': label, 'value': value};
return {label: label, value: value};
}));
}
@ -39,7 +39,7 @@ class AbstracRadio extends AbstractComponent
{
this.value(value.value);
}
};
}
}
export {AbstracRadio, AbstracRadio as default};

View file

@ -50,6 +50,6 @@ const componentExportHelper = (ClassObject, templateID = '') => {
}
}
};
}
};
export {AbstractComponent, componentExportHelper};

View file

@ -35,7 +35,7 @@ class AbstractInput extends AbstractComponent
' ' + Utils.trim('settings-saved-trigger-input ' + this.classForTrigger()) : ''
;
return (0 < size ? 'span' + size : '') + suffixValue;
return (size > 0 ? 'span' + size : '') + suffixValue;
}, this);

View file

@ -10,11 +10,11 @@ class CheckboxMaterialDesignComponent extends AbstracCheckbox
* @param {Object} params
*/
constructor(params) {
super(params);
this.animationBox = ko.observable(false).extend({'falseTimeout': 200});
this.animationCheckmark = ko.observable(false).extend({'falseTimeout': 200});
this.animationBox = ko.observable(false).extend({falseTimeout: 200});
this.animationCheckmark = ko.observable(false).extend({falseTimeout: 200});
this.animationBoxSetTrue = _.bind(this.animationBoxSetTrue, this);
this.animationCheckmarkSetTrue = _.bind(this.animationCheckmarkSetTrue, this);

View file

@ -73,7 +73,7 @@ class SaveTriggerComponent extends AbstractComponent
;
break;
}
};
}
}
module.exports = componentExportHelper(SaveTriggerComponent, 'SaveTriggerComponent');

View file

@ -6,7 +6,7 @@ let
getUtl = () => {
if (!cachedUrl)
{
const version = $('#rlAppVersion').attr('content') || '0.0.0'; // TODO
const version = $('#rlAppVersion').attr('content') || '0.0.0';
cachedUrl = `rainloop/v/${version}/static/css/svg/icons.svg`;
}