not-bulma 1.0.64 → 1.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -164,34 +164,40 @@ class notSideMenu extends Menu {
164
164
 
165
165
  static toggle(e) {
166
166
  e && e.preventDefault();
167
- if (this.isTouch()) {
168
- this.aside.classList.toggle("is-active");
169
- } else {
170
- this.aside.classList.toggle("is-closed");
167
+ if (this.aside) {
168
+ if (this.isTouch()) {
169
+ this.aside.classList.toggle("is-active");
170
+ } else {
171
+ this.aside.classList.toggle("is-closed");
172
+ }
173
+ this.resizeMain();
171
174
  }
172
- this.resizeMain();
173
175
  return false;
174
176
  }
175
177
 
176
178
  static hide(e) {
177
179
  e && e.preventDefault();
178
- if (this.isTouch()) {
179
- this.aside.classList.remove("is-active");
180
- } else {
181
- this.aside.classList.add("is-closed");
180
+ if (this.aside) {
181
+ if (this.isTouch()) {
182
+ this.aside.classList.remove("is-active");
183
+ } else {
184
+ this.aside.classList.add("is-closed");
185
+ }
186
+ this.resizeMain();
182
187
  }
183
- this.resizeMain();
184
188
  return false;
185
189
  }
186
190
 
187
191
  static show(e) {
188
192
  e && e.preventDefault();
189
- if (this.isTouch()) {
190
- this.aside.classList.add("is-active");
191
- } else {
192
- this.aside.classList.remove("is-closed");
193
+ if (this.aside) {
194
+ if (this.isTouch()) {
195
+ this.aside.classList.add("is-active");
196
+ } else {
197
+ this.aside.classList.remove("is-closed");
198
+ }
199
+ this.resizeMain();
193
200
  }
194
- this.resizeMain();
195
201
  return false;
196
202
  }
197
203