From 19224a7ab57d7e9f7ae59dcd94c8e0752a656c70 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 7 Jan 2022 16:31:59 +0100 Subject: [PATCH] Update sectors view --- src/style_manager/index.js | 1 - src/style_manager/view/SectorsView.js | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 0308d39ff..2855589f2 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -641,7 +641,6 @@ export default () => { __upProps(opts) { const lastTarget = this.getSelected(); - // if (!lastTarget || !this.getConfig().custom) return; if (!lastTarget) return; const lastTargetParents = this.getSelectedParents(); diff --git a/src/style_manager/view/SectorsView.js b/src/style_manager/view/SectorsView.js index 64ceb3448..ba3f74bc3 100644 --- a/src/style_manager/view/SectorsView.js +++ b/src/style_manager/view/SectorsView.js @@ -19,23 +19,10 @@ export default class SectorsView extends View { ['config', 'module', 'em'].forEach(i => (this[i] = {})); } - /** - * Add to collection - * @param {Object} model Model - * @return {Object} - * @private - * */ addTo(model, c, opts = {}) { this.addToCollection(model, null, opts); } - /** - * Add new object to collection - * @param {Object} model Model - * @param {Object} fragmentEl collection - * @return {Object} Object created - * @private - * */ addToCollection(model, fragmentEl, opts = {}) { const { config, el } = this; const appendTo = fragmentEl || el;