Commit 2556039f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

перенес _prepareComments и _prepareDrawingObjects в init WorksheetView

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53358 954022d7-b5bf-4e40-9824-e11837661b57
parent 5b4e4f0f
...@@ -1028,10 +1028,8 @@ ...@@ -1028,10 +1028,8 @@
var wb = this.model; var wb = this.model;
var i = asc_typeof(index) === "number" && index >= 0 ? index : wb.getActive(); var i = asc_typeof(index) === "number" && index >= 0 ? index : wb.getActive();
var ws = this.wsViews[i]; var ws = this.wsViews[i];
if ( !(ws instanceof asc_WSV) ) { if (!(ws instanceof asc_WSV)) {
ws = this.wsViews[i] = this._createWorksheetView( wb.getWorksheet(i) ); ws = this.wsViews[i] = this._createWorksheetView(wb.getWorksheet(i));
ws._prepareComments();
ws._prepareDrawingObjects();
} }
return ws; return ws;
}, },
......
...@@ -988,8 +988,8 @@ ...@@ -988,8 +988,8 @@
this._prepareCellTextMetricsCache(this.visibleRange); this._prepareCellTextMetricsCache(this.visibleRange);
// Код перенесён из getWorksheet // Код перенесён из getWorksheet
//this._prepareComments(); this._prepareComments();
//this._prepareDrawingObjects(); this._prepareDrawingObjects();
// initializing is completed // initializing is completed
this.handlers.trigger("initialized"); this.handlers.trigger("initialized");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment