Open kemiga opened 9 years ago
When destorying the plugin, we may need to using .off
to unbind the trigger when using existing elements as well as removeData.
Pull request raised #19
We cannot add removeData('plugin_hideShow') as it means fundermentally changing the plugin and how it initialised/rebuild
@lawlesscreation Would this be a won't fix issue?
As we're removing the rebuild function, I'm going to continue to remove the data on destroy as Kate raised
This change can be found in https://github.com/nomensa/jquery.hide-show/pull/21
Currently have to add: "target.removeData('plugin_hideShow')" in order to completely destroy the plugin data.