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

new Object() -> {}

используем для ускорения (http://jsperf.com/creation-object)


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53613 954022d7-b5bf-4e40-9824-e11837661b57
parent 1ab2592f
......@@ -672,7 +672,7 @@ CDocumentContent.prototype =
if ( "undefined" == typeof(this.Pages[++CurPage]) )
{
this.Pages[CurPage] = new Object();
this.Pages[CurPage] = {};
}
var StartPos = this.Get_PageContentStartPos( CurPage );
......@@ -5662,7 +5662,7 @@ CDocumentContent.prototype =
Interface_Update_DrawingPr : function(Flag)
{
var ImagePr = new Object();
var ImagePr = {};
if ( docpostype_DrawingObjects === this.CurPos.Type )
ImagePr = this.LogicDocument.DrawingObjects.getProps();
......@@ -6970,7 +6970,7 @@ CDocumentContent.prototype =
Get_SelectionState : function()
{
var DocState = new Object();
var DocState = {};
DocState.CurPos =
{
X : this.CurPos.X,
......@@ -7507,7 +7507,7 @@ CDocumentContent.prototype =
// Long : Количество элементов в массиве this.Content
// Array of string : массив Id элементов
var LinkData = new Object();
var LinkData = {};
this.Id = Reader.GetString2();
this.StartPage = Reader.GetLong();
......
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