HOT-FIX. Добавлены методы создания компонентов и нод внутри компонентов
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import Component from '../component';
|
||||
import './ModalSidebar.css';
|
||||
import {createElement} from '../../utils/elementUtils';
|
||||
|
||||
const SHOW_WINDOW_CLASS = 'ModalSidebar__window_show';
|
||||
const HIDE_WINDOW_CLASS = 'ModalSidebar__window_hide';
|
||||
@ -15,7 +14,7 @@ class ModalSidebar extends Component {
|
||||
const parentNode = document.body;
|
||||
super('#modal-sidebar', parentNode);
|
||||
|
||||
this.shadow = createElement({
|
||||
this.shadow = this.createElement({
|
||||
tagName: 'div',
|
||||
parentNode,
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user