vgapp 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/base-module.js +4 -2
- package/build/vgapp.css +7 -4531
- package/build/vgapp.js +2 -3230
- package/build/vgapp.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,9 @@ class BaseModule {
|
|
|
10
10
|
if (!element) return
|
|
11
11
|
|
|
12
12
|
this._element = Selectors.find(element);
|
|
13
|
-
if (!this._element)
|
|
13
|
+
if (!this._element){
|
|
14
|
+
throw new Error('Товарищ! Первый параметр не должен быть пустым!');
|
|
15
|
+
}
|
|
14
16
|
|
|
15
17
|
this._params = {};
|
|
16
18
|
Data.set(this._element, this.constructor.NAME_KEY, this)
|
|
@@ -65,7 +67,7 @@ class BaseModule {
|
|
|
65
67
|
|
|
66
68
|
_dismissElement() {
|
|
67
69
|
let cross = getSVG('cross'),
|
|
68
|
-
button = this._element
|
|
70
|
+
button = this._element.querySelector('.vg-btn-close');
|
|
69
71
|
|
|
70
72
|
if (button) {
|
|
71
73
|
let svg = button.querySelector('svg');
|