We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e37b02 commit b7fad8cCopy full SHA for b7fad8c
1 file changed
src/js/jquery.smartTab.js
@@ -595,7 +595,12 @@
595
let instance = $.data(this[0], 'smartTab');
596
597
if (options === 'destroy') {
598
- $.data(this, 'smartTab', null);
+ if (instance != null) {
599
+ instance.tabs.off("click");
600
+ instance.main.data('click-init', false)
601
+ $.data(this[0], 'smartTab', null);
602
+ }
603
+ return this;
604
}
605
606
if (instance instanceof SmartTab && typeof instance[options] === 'function') {
0 commit comments