eslint (additional rules)

This commit is contained in:
RainLoop Team 2016-06-30 03:02:45 +03:00
parent 77a1d3f3df
commit 8e8a041032
150 changed files with 21911 additions and 23106 deletions

View file

@ -1,39 +1,32 @@
(function () {
var
ko = require('ko'),
'use strict';
Utils = require('Common/Utils'),
var
ko = require('ko'),
Settings = require('Storage/Settings');
Utils = require('Common/Utils'),
/**
* @constructor
*/
function ThemeStore()
{
this.themes = ko.observableArray([]);
this.themeBackgroundName = ko.observable('');
this.themeBackgroundHash = ko.observable('');
Settings = require('Storage/Settings')
;
this.theme = ko.observable('')
.extend({'limitedList': this.themes});
}
/**
* @constructor
*/
function ThemeStore()
{
this.themes = ko.observableArray([]);
this.themeBackgroundName = ko.observable('');
this.themeBackgroundHash = ko.observable('');
ThemeStore.prototype.populate = function()
{
var aThemes = Settings.appSettingsGet('themes');
this.theme = ko.observable('')
.extend({'limitedList': this.themes});
}
this.themes(Utils.isArray(aThemes) ? aThemes : []);
this.theme(Settings.settingsGet('Theme'));
this.themeBackgroundName(Settings.settingsGet('UserBackgroundName'));
this.themeBackgroundHash(Settings.settingsGet('UserBackgroundHash'));
};
ThemeStore.prototype.populate = function ()
{
var aThemes = Settings.appSettingsGet('themes');
this.themes(Utils.isArray(aThemes) ? aThemes : []);
this.theme(Settings.settingsGet('Theme'));
this.themeBackgroundName(Settings.settingsGet('UserBackgroundName'));
this.themeBackgroundHash(Settings.settingsGet('UserBackgroundHash'));
};
module.exports = new ThemeStore();
}());
module.exports = new ThemeStore();