aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-01-31 11:46:31 -0500
committerScott González <scott.gonzalez@gmail.com>2012-01-31 11:46:31 -0500
commit3919256abd7b91dcc8437c245f98d623103f97e0 (patch)
treee9c65fa29c35e9a5f97a5f85a80858cc30d46ba7 /ui/jquery.ui.accordion.js
parentecddf469d7924d88d72e57a4806996fc50fa50ae (diff)
downloadjquery-ui-3919256abd7b91dcc8437c245f98d623103f97e0.tar.gz
jquery-ui-3919256abd7b91dcc8437c245f98d623103f97e0.zip
Accordion: Pass header and content in create event. Fixes #7869 - Accordion: Provide header and content details in create event.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index a019ca127..97549cb10 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -103,6 +103,13 @@ $.widget( "ui.accordion", {
this._setupEvents( options.event );
},
+ _getCreateEventData: function() {
+ return {
+ header: this.active,
+ content: !this.active.length ? $() : this.active.next()
+ };
+ },
+
_createIcons: function() {
var icons = this.options.icons;
if ( icons ) {