From 9fdc584ef1f37fc4e814885574393de1aebf706b Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" Date: Thu, 27 Apr 2017 18:23:52 +0300 Subject: [PATCH] fix open error sequence: - load document - load sdk before load fonts and crash on an attempt to send styles event --- cell/api.js | 9 --------- slide/api.js | 6 ------ word/api.js | 9 --------- 3 files changed, 24 deletions(-) diff --git a/cell/api.js b/cell/api.js index 37e972bf9f..0eda66c2d6 100644 --- a/cell/api.js +++ b/cell/api.js @@ -568,15 +568,6 @@ var editor; } this.isUseEmbeddedCutFonts = false; - - // Отправка стилей - this._sendWorkbookStyles(); - if (this.IsSendDocumentLoadCompleate && this.collaborativeEditing) { - // Принимаем чужие изменения - this.collaborativeEditing.applyChanges(); - // Пересылаем свои изменения - this.collaborativeEditing.sendChanges(); - } } }; diff --git a/slide/api.js b/slide/api.js index afc6028eaf..a268eea537 100644 --- a/slide/api.js +++ b/slide/api.js @@ -5504,12 +5504,6 @@ background-repeat: no-repeat;\ return; } - if (this.bInit_word_control === true) - { - AscCommon.CollaborativeEditing.Apply_Changes(); - AscCommon.CollaborativeEditing.Release_Locks(); - } - this.isUseEmbeddedCutFonts = false; this.WordControl.checkNeedRules(); diff --git a/word/api.js b/word/api.js index a3b0f18493..efe61e54d9 100644 --- a/word/api.js +++ b/word/api.js @@ -6352,15 +6352,6 @@ background-repeat: no-repeat;\ return; } - // быстрого перехода больше нет - /* - if ( this.bInit_word_control === true ) - { - CollaborativeEditing.Apply_Changes(); - CollaborativeEditing.Release_Locks(); - } - */ - this.isUseEmbeddedCutFonts = false; //this.WordControl.m_bIsRuler = true;