Browse Source

Update sectors view

up-style-manager
Artur Arseniev 5 years ago
parent
commit
19224a7ab5
  1. 1
      src/style_manager/index.js
  2. 13
      src/style_manager/view/SectorsView.js

1
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();

13
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;

Loading…
Cancel
Save