diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-14 12:33:16 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-14 12:33:16 -0400 |
commit | ff39bed57a05ca060033187b8aecebafab357f78 (patch) | |
tree | e82f4c3faa3b5269f0f86e3f186a6f3024ad7466 /ui/jquery.ui.accordion.js | |
parent | 00d4beb0ca4a99933bb7e786a1dd50618c180a0b (diff) | |
download | jquery-ui-ff39bed57a05ca060033187b8aecebafab357f78.tar.gz jquery-ui-ff39bed57a05ca060033187b8aecebafab357f78.zip |
Widget: Added _off() for removing event handlers. Fixes #7795 - Widget: _on and _off.
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 4cfc265a3..e8a10b746 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -219,8 +219,7 @@ $.widget( "ui.accordion", { if ( key === "event" ) { if ( this.options.event ) { - this.headers.unbind( - this.options.event.split( " " ).join( ".accordion " ) + ".accordion" ); + this._off( this.headers, this.options.event ); } this._setupEvents( value ); } |