From 268060f5ba2911213def4d02bc892f0f15b05785 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 11 Dec 2017 01:08:44 +0100 Subject: [PATCH] Remove `initChildrenComp` method from Editor --- src/editor/model/Editor.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/editor/model/Editor.js b/src/editor/model/Editor.js index db4a4d824..69014dcb8 100644 --- a/src/editor/model/Editor.js +++ b/src/editor/model/Editor.js @@ -354,33 +354,6 @@ module.exports = Backbone.Model.extend({ this.handleUpdates(model, val, opt); }, - /** - * Init stuff like storage for already existing elements - * @param {Object} model - * @private - * - initChildrenComp(model) { - var comps = model.get('components'); - this.updateComponents(model, null, { avoidStore : 1 }); - comps.each(md => { - this.initChildrenComp(md); - this.um && this.um.register(md); - }); - },*/ - - /** - * Triggered when some component is removed updated - * @param {Object} model - * @param {Mixed} val Value - * @param {Object} opt Options - * @private - * */ - rmComponents(model, val, opt) { - var avSt = opt ? opt.avoidStore : 0; - - if(!avSt) - this.handleUpdates(model, val, opt); - }, /** * Returns model of the selected component