aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-05-01 05:12:17 -0500
committergnarf <gnarf@gnarf.net>2011-05-01 05:12:17 -0500
commit4a4d7e4b7392d86944c06e2ec98feef9501f9731 (patch)
tree4be04eaa5e0cc6229cc16ccfd8235ca061a94c0e /ui/jquery.ui.accordion.js
parentd6379d11e3c336354b880603b2bfce81ef0b127d (diff)
parentfe3b36b8efcabf3d1f1d60523cae87c69a882f27 (diff)
downloadjquery-ui-4a4d7e4b7392d86944c06e2ec98feef9501f9731.tar.gz
jquery-ui-4a4d7e4b7392d86944c06e2ec98feef9501f9731.zip
Merge branch 'master' into effects-unit
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 95fa1d163..0cc1f9e2a 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -25,7 +25,11 @@ $.widget( "ui.accordion", {
icons: {
activeHeader: "ui-icon-triangle-1-s",
header: "ui-icon-triangle-1-e"
- }
+ },
+
+ // callbacks
+ activate: null,
+ beforeActivate: null
},
_create: function() {
@@ -275,7 +279,7 @@ $.widget( "ui.accordion", {
}
// trying to collapse, simulate a click on the currently active header
- active = active || this.active;
+ active = active || this.active[ 0 ];
this._eventHandler({
target: active,
@@ -319,7 +323,7 @@ $.widget( "ui.accordion", {
// click on active header, but not collapsible
( clickedIsActive && !options.collapsible ) ||
// allow canceling activation
- ( this._trigger( "beforeActivate", null, eventData ) === false ) ) {
+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
return;
}
@@ -649,6 +653,11 @@ if ( $.uiBackCompat !== false ) {
// change events
(function( $, prototype ) {
+ $.extend( prototype.options, {
+ change: null,
+ changestart: null
+ });
+
var _trigger = prototype._trigger;
prototype._trigger = function( type, event, data ) {
var ret = _trigger.apply( this, arguments );