Commit db0c1eb7 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Перенесено создание глобальных классов в конструктор класса CApi.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51409 954022d7-b5bf-4e40-9824-e11837661b57
parent 53f189cd
......@@ -264,7 +264,7 @@ function CTableId()
};
}
var g_oTableId = new CTableId();
var g_oTableId = null;
function CCollaborativeChanges()
{
......
......@@ -327,13 +327,10 @@ CDocumentRecalcInfo.prototype =
function CDocument(DrawingDocument)
{
this.History = new CHistory(this);
History = this.History;
// Создаем глобальные объекты, необходимые для совместного редактирования
this.History = History;
this.IdCounter = g_oIdCounter;
this.TableId = g_oTableId;
this.CollaborativeEditing = CollaborativeEditing;
//------------------------------------------------------------------------
......
......@@ -842,3 +842,5 @@ CHistory.prototype =
}
};
var History = null;
......@@ -502,6 +502,9 @@ var DocumentPageSize = new function() {
function asc_docs_api(name)
{
History = new CHistory();
g_oTableId = new CTableId();
/************ private!!! **************/
this.HtmlElementName = name;
......
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