[SSE] Bug with delayed loading of toolbar (clone object properties).

This commit is contained in:
Julia Radzhabova 2016-09-13 11:56:42 +03:00
parent bc979bc539
commit 7853348669

View file

@ -885,12 +885,19 @@ define([
me.mnuZoomIn = dummyCmp();
me.mnuZoomOut = dummyCmp();
var clone = function(source) {
var obj = {};
for (var prop in source)
obj[prop] = (typeof(source[prop])=='object') ? clone(source[prop]) : source[prop];
return obj;
};
this.mnuitemHideHeadings = {
conf: {checked:false},
setChecked: function(val) { this.conf.checked = val;},
isChecked: function () { return this.conf.checked; }
};
this.mnuitemHideGridlines = _.clone(this.mnuitemHideHeadings);
this.mnuitemHideGridlines = clone(this.mnuitemHideHeadings);
this.mnuZoom = {
options: {value: 100}
};