Commit 41de9dbd authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Asc.editor -> Asc["editor"]

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56003 954022d7-b5bf-4e40-9824-e11837661b57
parent 04b17249
...@@ -24,7 +24,7 @@ CShape.prototype.setDrawingBase = function(drawingBase) ...@@ -24,7 +24,7 @@ CShape.prototype.setDrawingBase = function(drawingBase)
CShape.prototype.getDrawingObjectsController = function() CShape.prototype.getDrawingObjectsController = function()
{ {
var wsViews = Asc.editor && Asc.editor.wb && Asc.editor.wb.wsViews; var wsViews = Asc["editor"] && Asc["editor"].wb && Asc["editor"].wb.wsViews;
if(wsViews) if(wsViews)
{ {
for(var i = 0; i < wsViews.length; ++i) for(var i = 0; i < wsViews.length; ++i)
...@@ -41,7 +41,7 @@ function addToDrawings(worksheet, graphic, position, lockByDefault) ...@@ -41,7 +41,7 @@ function addToDrawings(worksheet, graphic, position, lockByDefault)
{ {
var drawingObjects; var drawingObjects;
var wsViews = Asc.editor.wb.wsViews; var wsViews = Asc["editor"].wb.wsViews;
for(var i = 0; i < wsViews.length; ++i) for(var i = 0; i < wsViews.length; ++i)
{ {
if(wsViews[i] && wsViews[i].model === worksheet) if(wsViews[i] && wsViews[i].model === worksheet)
......
...@@ -431,7 +431,7 @@ CHistory.prototype = ...@@ -431,7 +431,7 @@ CHistory.prototype =
if (g_oUndoRedoGraphicObjects === Item.Class) if (g_oUndoRedoGraphicObjects === Item.Class)
isRedrawAll = false; isRedrawAll = false;
} }
var wsViews = Asc.editor.wb.wsViews; var wsViews = Asc["editor"].wb.wsViews;
for(var i = 0; i < wsViews.length; ++i) for(var i = 0; i < wsViews.length; ++i)
{ {
if(wsViews[i]) if(wsViews[i])
...@@ -523,7 +523,7 @@ CHistory.prototype = ...@@ -523,7 +523,7 @@ CHistory.prototype =
oRedoObjectParam.oChangeWorksheetUpdate[Item.SheetId] = Item.SheetId; oRedoObjectParam.oChangeWorksheetUpdate[Item.SheetId] = Item.SheetId;
} }
} }
var wsViews = Asc.editor.wb.wsViews; var wsViews = Asc["editor"].wb.wsViews;
for(var i = 0; i < wsViews.length; ++i) for(var i = 0; i < wsViews.length; ++i)
{ {
if(wsViews[i]) if(wsViews[i])
......
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