jquery-autosave
jquery-autosave copied to clipboard
best way to clean up / stop autosave behavior?
I'm working on a full rewrite of this plugin which will make this easier, you can monitor progress here: https://github.com/kflorence/jquery-autosave/tree/2.0
@kflorence what's the status on your rewrite? is it working as well as the original currently?
It's not production ready yet. It will use the jQuery promise pattern and allow handlers to have setup and teardown methods in addition to the method that is called on save which will help with performing necessary tasks before and after handlers are needed.
I'll ping you again here when it's in a usable state.
In the meantime, the best way of cleaning up autosave depends on how you are using it, but in general timers should be stopped and the instance should be decoupled from the DOM.
Can you please provide me a code example of how we can clear the timer and uninitiate autosave?