diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-04-15 02:33:28 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-04-15 02:33:28 +0000 |
commit | 1195854aaad61308e7f5339eed54f92284d7666e (patch) | |
tree | 5991992a73f910d897967559332a15bd774816d8 /ui/ui.accordion.js | |
parent | 3c7b61299333d1ec3f4d4d773b1ec4296129a98e (diff) | |
download | jquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.tar.gz jquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.zip |
Merged in widget-factory branch and added tests. Fixes #4411 - Widget factory should auto detect getters.
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r-- | ui/ui.accordion.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 0a625e5d3..c7e55f5c8 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -125,6 +125,8 @@ $.widget("ui.accordion", { if (o.autoHeight || o.fillHeight) { contents.css("height", ""); } + + return this; }, _setData: function(key, value) { @@ -195,12 +197,15 @@ $.widget("ui.accordion", { }).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) { |