Open vaiciant opened 3 years ago
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Hello? This issue is about to be closed if nobody replies.
Hey,
I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!
Hello, I have a problem with the method destroy() in the object swup. I created my controller in stimulus so when the event connect is trigered it saved the object of swup, like the example of the readme:
It's saved to the window so I can access it in javascript, I want to call the method destroy() so this is what I writed:
It all went well until I disabled de data-debug like this:
It didn't work and the javascript console throws an error:
And the line index.jd:67 is in the _createClass(FormPlugin:
Aparently the delegatedListeners are undefined when the DebuPlugin is not active, maybe I'm doing it wrong and not initializing the correct object and that's why it is undefined. It's working well whit the DebugPlugin enabled but I don't want to spam the console with all the events.
Is there a way to destroy the object of swup without the DebugPlugin??
Thanks in advance and amazing work in this, it all just works!