diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 21:52:09 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:55 -0400 |
commit | b240eed81b96c9c4128ca5682d876fbc6f96a9c4 (patch) | |
tree | 5796ea8800d0e9a8a7acb64bf43d3830bc1e8902 /ui/accordion.js | |
parent | ad98cb167350b8d929b71bfeefc904c8964893dd (diff) | |
download | jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.tar.gz jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.zip |
Accordion: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'ui/accordion.js')
-rw-r--r-- | ui/accordion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/accordion.js b/ui/accordion.js index 646352715..a9b843cd5 100644 --- a/ui/accordion.js +++ b/ui/accordion.js @@ -217,14 +217,14 @@ return $.widget( "ui.accordion", { if ( toFocus ) { $( event.target ).attr( "tabIndex", -1 ); $( toFocus ).attr( "tabIndex", 0 ); - toFocus.focus(); + $( toFocus ).trigger( "focus" ); event.preventDefault(); } }, _panelKeyDown: function( event ) { if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) { - $( event.currentTarget ).prev().focus(); + $( event.currentTarget ).prev().trigger( "focus" ); } }, |