aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tabs.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-05-13 22:01:58 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-05-20 14:27:57 -0400
commitc25a541fc414bc46a2ab6911ca2a09a1c772c999 (patch)
tree026bb342e39fd892ea2a2d9db4401d17c7a31445 /ui/tabs.js
parent89bf0d057bc9ec552b042a997501e094e95da543 (diff)
downloadjquery-ui-c25a541fc414bc46a2ab6911ca2a09a1c772c999.tar.gz
jquery-ui-c25a541fc414bc46a2ab6911ca2a09a1c772c999.zip
Tabs: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'ui/tabs.js')
-rw-r--r--ui/tabs.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/tabs.js b/ui/tabs.js
index 3bd7b9246..f267ad4bf 100644
--- a/ui/tabs.js
+++ b/ui/tabs.js
@@ -233,7 +233,7 @@ $.widget( "ui.tabs", {
// Ctrl+up moves focus to the current tab
if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) {
event.preventDefault();
- this.active.focus();
+ this.active.trigger( "focus" );
}
},
@@ -271,7 +271,7 @@ $.widget( "ui.tabs", {
_focusNextTab: function( index, goingForward ) {
index = this._findNextTab( index, goingForward );
- this.tabs.eq( index ).focus();
+ this.tabs.eq( index ).trigger( "focus" );
return index;
},
@@ -394,7 +394,7 @@ $.widget( "ui.tabs", {
// Prevent users from focusing disabled tabs via click
this.tablist
- .delegate( "> li", "mousedown" + this.eventNamespace, function( event ) {
+ .on( "mousedown" + this.eventNamespace, "> li", function( event ) {
if ( $( this ).is( ".ui-state-disabled" ) ) {
event.preventDefault();
}
@@ -406,7 +406,7 @@ $.widget( "ui.tabs", {
// We don't have to worry about focusing the previously focused
// element since clicking on a non-focusable element should focus
// the body anyway.
- .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {
+ .on( "focus" + this.eventNamespace, ".ui-tabs-anchor", function() {
if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {
this.blur();
}
@@ -726,7 +726,7 @@ $.widget( "ui.tabs", {
this.tablist
.removeAttr( "role" )
- .unbind( this.eventNamespace );
+ .off( this.eventNamespace );
this.anchors
.removeAttr( "role tabIndex" )