aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-07 18:54:38 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-07 18:54:38 +0100
commit1d68f1339975e5c3f725c8860870d402cbcfec27 (patch)
tree31e762888639a59f695209b0d382ca85720e94a2 /ui/jquery.ui.accordion.js
parent374661a2ffaaef93f2b679826bc69c0b214b5310 (diff)
downloadjquery-ui-1d68f1339975e5c3f725c8860870d402cbcfec27.tar.gz
jquery-ui-1d68f1339975e5c3f725c8860870d402cbcfec27.zip
Accordion: Use _bind for keydown handler
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 5a49d7813..f4747d168 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -42,6 +42,9 @@ $.widget( "ui.accordion", {
.addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" );
this._hoverable( this.headers );
this._focusable( this.headers );
+ this._bind( this.headers, {
+ keydown: "_keydown"
+ });
this.headers.next()
.addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" );
@@ -68,8 +71,6 @@ $.widget( "ui.accordion", {
this.headers
.attr( "role", "tab" )
- // TODO: use _bind()
- .bind( "keydown.accordion", $.proxy( this, "_keydown" ) )
.next()
.attr( "role", "tabpanel" );