mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
garding againts data set in egw object by reference from an other window, causing data to be inaccessible in IE after window closes
This commit is contained in:
@@ -37,13 +37,16 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() {
|
||||
*
|
||||
* @param {string} _app
|
||||
* @param {object} _messages message => translation pairs
|
||||
* @param {boolean} _need_clone _messages need to be cloned, as it is from different window context
|
||||
* and therefore will be inaccessible in IE, after that window is closed
|
||||
* @memberOf egw
|
||||
*/
|
||||
set_lang_arr: function(_app, _messages)
|
||||
set_lang_arr: function(_app, _messages, _need_clone)
|
||||
{
|
||||
if(!jQuery.isArray(_messages))
|
||||
{
|
||||
lang_arr[_app] = _messages;
|
||||
// no deep clone jQuery.extend(true,...) neccessary, as _messages contains only string values
|
||||
lang_arr[_app] = _need_clone ? jQuery.extend({}, _messages) : _messages;
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user