diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-07 19:17:09 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-07 19:17:09 +0100 |
commit | 050958277317cf127b98f8ac26f70f57cf147b26 (patch) | |
tree | e34022084fac3fc3973e4bf3b47fd71c2a25037e /ui/jquery.ui.accordion.js | |
parent | 1d68f1339975e5c3f725c8860870d402cbcfec27 (diff) | |
download | jquery-ui-050958277317cf127b98f8ac26f70f57cf147b26.tar.gz jquery-ui-050958277317cf127b98f8ac26f70f57cf147b26.zip |
Accordion: Fix unbinding of accordion event option when dealing with multiple events. Make sure to unbind only those namespaced to .accordion
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r-- | ui/jquery.ui.accordion.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index f4747d168..bf8434c6d 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -162,8 +162,7 @@ $.widget( "ui.accordion", { if ( key === "event" ) { if ( this.options.event ) { - // TODO: this is incorrect for multiple events (see _setupEvents) - this.headers.unbind( this.options.event + ".accordion", this._eventHandler ); + this.headers.unbind( this.options.event.split( " " ).join( ".accordion " ) + ".accordion", this._eventHandler ); } this._setupEvents( value ); } |