r2408 - Tabs: refactored for auto-detection of getters.
Author: scott.gonzalez
Date: Mon Mar 30 06:19:22 2009
New Revision: 2408
Modified:
branches/dev/widget-factory/ui/ui.tabs.js
Log:
Tabs: refactored for auto-detection of getters.
Modified: branches/dev/widget-factory/ui/ui.tabs.js
==============================================================================
--- branches/dev/widget-factory/ui/ui.tabs.js (original)
+++ branches/dev/widget-factory/ui/ui.tabs.js Mon Mar 30 06:19:22 2009
@@ -434,6 +434,8 @@
if (o.cookie) {
this._cookie(null, o.cookie);
}
+
+ return this;
},
add: function(url, label, index) {
@@ -480,6 +482,7 @@
// callback
this._trigger('add', null, this._ui(this.anchors[index],
this.panels[index]));
+ return this;
},
remove: function(index) {
@@ -499,6 +502,7 @@
// callback
this._trigger('remove', null, this._ui($li.find('a')[0], $panel[0]));
+ return this;
},
enable: function(index) {
@@ -512,6 +516,7 @@
// callback
this._trigger('enable', null, this._ui(this.anchors[index],
this.panels[index]));
+ return this;
},
disable: function(index) {
@@ -525,6 +530,8 @@
// callback
this._trigger('disable', null, this._ui(this.anchors[index],
this.panels[index]));
}
+
+ return this;
},
select: function(index) {
@@ -539,6 +546,7 @@
}
this.anchors.eq(index).trigger(this.options.event + '.tabs');
+ return this;
},
load: function(index) {
@@ -583,6 +591,8 @@
self.element.dequeue("tabs");
}
}));
+
+ return this;
},
abort: function() {
@@ -598,11 +608,12 @@
// take care of tab labels
this._cleanup();
-
+ return this;
},
url: function(index, url) {
this.anchors.eq(index).removeData('cache.tabs').data('load.tabs', url);
+ return this;
},
length: function() {
@@ -679,6 +690,8 @@
delete this._rotate;
delete this._unrotate;
}
+
+ return this;
}
});