plutonium 0.19.10 → 0.19.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -11161,8 +11161,10 @@ ${text2}</tr>
11161
11161
  this.element.setAttribute("data-action", "turbo:morph-element->easymde#reconnect");
11162
11162
  }
11163
11163
  disconnect() {
11164
- this.easyMDE.toTextArea();
11165
- this.easyMDE = null;
11164
+ if (this.easyMDE) {
11165
+ this.easyMDE.toTextArea();
11166
+ this.easyMDE = null;
11167
+ }
11166
11168
  }
11167
11169
  reconnect() {
11168
11170
  this.disconnect();
@@ -11203,8 +11205,10 @@ ${text2}</tr>
11203
11205
  this.element.setAttribute("data-action", "turbo:morph-element->slim-select#reconnect");
11204
11206
  }
11205
11207
  disconnect() {
11206
- this.slimSelect.destroy();
11207
- this.slimSelect = null;
11208
+ if (this.slimSelect) {
11209
+ this.slimSelect.destroy();
11210
+ this.slimSelect = null;
11211
+ }
11208
11212
  }
11209
11213
  reconnect() {
11210
11214
  this.disconnect();
@@ -11219,8 +11223,10 @@ ${text2}</tr>
11219
11223
  this.element.setAttribute("data-action", "turbo:morph-element->flatpickr#reconnect");
11220
11224
  }
11221
11225
  disconnect() {
11222
- this.picker.destroy();
11223
- this.picker = null;
11226
+ if (this.picker) {
11227
+ this.picker.destroy();
11228
+ this.picker = null;
11229
+ }
11224
11230
  }
11225
11231
  reconnect() {
11226
11232
  this.disconnect();
@@ -11253,9 +11259,10 @@ ${text2}</tr>
11253
11259
  this.inputTarget.setAttribute("data-action", "turbo:morph-element->intl-tel-input#reconnect");
11254
11260
  }
11255
11261
  inputTargetDisconnected() {
11256
- if (this.iti)
11262
+ if (this.iti) {
11257
11263
  this.iti.destroy();
11258
- this.iti = null;
11264
+ this.iti = null;
11265
+ }
11259
11266
  }
11260
11267
  reconnect() {
11261
11268
  this.inputTargetDisconnected();