aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.tabs.js
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2009-01-18 21:09:31 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2009-01-18 21:09:31 +0000
commit941f6feede6489024dc77a03065c59ac49231fa7 (patch)
treed9e7dd045578d58f2eefd0c2295459eceaeee302 /ui/ui.tabs.js
parent6b887b5efd931fbc2e13056da904a5f22870bc1d (diff)
downloadjquery-ui-941f6feede6489024dc77a03065c59ac49231fa7.tar.gz
jquery-ui-941f6feede6489024dc77a03065c59ac49231fa7.zip
UI Tabs: fixed incomplete destroy method, fixes #3798
Diffstat (limited to 'ui/ui.tabs.js')
-rw-r--r--ui/ui.tabs.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js
index 34438e55d..9c3243ee1 100644
--- a/ui/ui.tabs.js
+++ b/ui/ui.tabs.js
@@ -21,8 +21,14 @@ $.widget("ui.tabs", {
destroy: function() {
var o = this.options;
+
+ this.element
+ .removeClass('ui-tabs ui-widget ui-widget-content ui-corner-all');
+
this.list.unbind('.tabs')
- .removeClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all').removeData('tabs');
+ .removeClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all')
+ .removeData('tabs');
+
this.$tabs.each(function() {
var href = $.data(this, 'href.tabs');
if (href)
@@ -32,6 +38,7 @@ $.widget("ui.tabs", {
$this.removeData(prefix + '.tabs');
});
});
+
this.$lis.unbind('.tabs').add(this.$panels).each(function() {
if ($.data(this, 'destroy.tabs'))
$(this).remove();
@@ -48,6 +55,7 @@ $.widget("ui.tabs", {
'ui-corner-bottom ' +
'ui-tabs-hide');
});
+
if (o.cookie)
this._cookie(null, o.cookie);
},