destroy method problem
gorelics opened this issue · 0 comments
gorelics commented
destroy: function() {
...
// this is AutoHidingNavbar object
// $.data(this, 'plugin_' + pluginName, null);
// fix
$.data(this.element.get(0), 'plugin_' + pluginName, null);
...
}
$.fn[pluginName] = function(options) {
...
// this is DOMElement
$.data(this, 'plugin_' + pluginName, new AutoHidingNavbar(this, options));
...
}