Skip to content
Permalink
Browse files

Accordion: Use _bind for keydown handler

  • Loading branch information
jzaefferer committed Mar 7, 2012
1 parent 374661a commit 1d68f1339975e5c3f725c8860870d402cbcfec27
Showing with 3 additions and 2 deletions.
  1. +3 −2 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" );

0 comments on commit 1d68f13

Please sign in to comment.
You can’t perform that action at this time.