r2401 - Accordion: refactored for auto-detection of getters.
Author: scott.gonzalez
Date: Mon Mar 30 06:16:21 2009
New Revision: 2401
Modified:
branches/dev/widget-factory/ui/ui.accordion.js
Log:
Accordion: refactored for auto-detection of getters.
Modified: branches/dev/widget-factory/ui/ui.accordion.js
==============================================================================
--- branches/dev/widget-factory/ui/ui.accordion.js (original)
+++ branches/dev/widget-factory/ui/ui.accordion.js Mon Mar 30 06:16:21 2009
@@ -125,6 +125,8 @@
if (o.autoHeight || o.fillHeight) {
contents.css("height", "");
}
+
+ return this;
},
_setData: function(key, value) {
@@ -195,12 +197,15 @@
}).height(maxHeight);
}
+ return this;
},
activate: function(index) {
// call clickHandler with custom event
var active = this._findActive(index)[0];
this._clickHandler({ target: active }, active);
+
+ return this;
},
_findActive: function(selector) {