From c1298c42563affdcab54b5ab494eae1781f75989 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 4 Oct 2018 22:06:07 +0200 Subject: [PATCH] Load sectors in onLoad in Style Manager --- src/style_manager/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/style_manager/index.js b/src/style_manager/index.js index e97103d73..6ae19c927 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -74,17 +74,21 @@ module.exports = () => { var ppfx = c.pStylePrefix; if (ppfx) c.stylePrefix = ppfx + c.stylePrefix; - properties = new Properties(); - sectors = new Sectors(c.sectors, c); + sectors = new Sectors([], c); SectView = new SectorsView({ collection: sectors, target: c.em, config: c }); + return this; }, + onLoad() { + sectors.add(c.sectors); + }, + postRender() { const elTo = this.getConfig().appendTo;