src/js/controllers/easymde_controller.js in plutonium-0.16.0 vs src/js/controllers/easymde_controller.js in plutonium-0.16.1

- old
+ new

@@ -4,16 +4,16 @@ // Connects to data-controller="easymde" export default class extends Controller { connect() { console.log(`easymde connected: ${this.element}`) - self.easyMDE = new EasyMDE(this.#buildOptions()) + this.easyMDE = new EasyMDE(this.#buildOptions()) this.element.setAttribute("data-action", "turbo:morph-element->easymde#reconnect") } disconnect() { - self.easyMDE.toTextArea() - self.easyMDE = null + this.easyMDE.toTextArea() + this.easyMDE = null } reconnect() { this.disconnect() this.connect()