Browse Source

Print warning in case appendTo of StyleManager is not found

pull/3905/head
Artur Arseniev 4 years ago
parent
commit
65147c6992
  1. 4
      src/style_manager/index.js

4
src/style_manager/index.js

@ -34,6 +34,7 @@
*/
import { isElement } from 'underscore';
import Module from 'common/module';
import defaults from './config/config';
import Sectors from './model/Sectors';
import Properties from './model/Properties';
@ -46,6 +47,8 @@ export default () => {
var sectors, SectView;
return {
...Module,
PropertyFactory: PropertyFactory(),
/**
@ -89,6 +92,7 @@ export default () => {
if (elTo) {
const el = isElement(elTo) ? elTo : document.querySelector(elTo);
if (!el) return this.__logWarn('"appendTo" element not found');
el.appendChild(this.render());
}
},

Loading…
Cancel
Save