aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-25 08:10:39 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-25 08:11:52 -0400
commitc4c36e557ef2b3450bc365708064f7314bc6fdc4 (patch)
tree118b1f85496ec0118b31f2bcdbffbfd685ac5684 /ui/jquery.ui.accordion.js
parent6326da3fdb29ea4f40e39bc06abf14cde5ba5c8c (diff)
downloadjquery-ui-c4c36e557ef2b3450bc365708064f7314bc6fdc4.tar.gz
jquery-ui-c4c36e557ef2b3450bc365708064f7314bc6fdc4.zip
Accordion, Autocomplete, Tabs: Separate callbacks and options in the defaults.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 455c66a28..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() {
@@ -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 );