remove exceptions from user preference builder
This commit is contained in:
parent
7abe22780b
commit
375934ed13
1 changed files with 2 additions and 12 deletions
|
@ -49,10 +49,6 @@ define(['appSettings', 'events'], function (appSettings, events) {
|
|||
|
||||
UserSettings.prototype.set = function (name, value, enableOnServer) {
|
||||
var userId = this.currentUserId;
|
||||
if (!userId) {
|
||||
throw new Error('userId cannot be null');
|
||||
}
|
||||
|
||||
var currentValue = this.get(name, enableOnServer);
|
||||
var result = appSettings.set(name, value, userId);
|
||||
|
||||
|
@ -70,14 +66,8 @@ define(['appSettings', 'events'], function (appSettings, events) {
|
|||
|
||||
UserSettings.prototype.get = function (name, enableOnServer) {
|
||||
var userId = this.currentUserId;
|
||||
if (!userId) {
|
||||
throw new Error('userId cannot be null');
|
||||
}
|
||||
|
||||
if (enableOnServer !== false) {
|
||||
if (this.displayPrefs) {
|
||||
return this.displayPrefs.CustomPrefs[name];
|
||||
}
|
||||
if (enableOnServer !== false && this.displayPrefs) {
|
||||
return this.displayPrefs.CustomPrefs[name];
|
||||
}
|
||||
|
||||
return appSettings.get(name, userId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue