forked from extern/egroupware
Return clone of preference object as we don't want direct reference to original object
This commit is contained in:
parent
94d91f3ac8
commit
0d2932d0a6
@ -66,9 +66,9 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
|
||||
request.sendRequest(false, 'GET'); // use synchronous (cachable) GET request
|
||||
if (typeof prefs[_app] == 'undefined') prefs[_app] = {};
|
||||
}
|
||||
if(_name == "*") return prefs[_app];
|
||||
if(_name == "*") return typeof prefs[_app] ==='object'?jQuery.extend({},prefs[_app]):prefs[_app];
|
||||
|
||||
return prefs[_app][_name];
|
||||
return typeof prefs[_app][_name] ==='object'?jQuery.extend({},prefs[_app][_name]):prefs[_app][_name];
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user