From c25a541fc414bc46a2ab6911ca2a09a1c772c999 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 22:01:58 -0400 Subject: Tabs: Remove core event/alias and deprecated module dependencies --- demos/tabs/manipulation.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demos') diff --git a/demos/tabs/manipulation.html b/demos/tabs/manipulation.html index fc9b750b3..f7202ee48 100644 --- a/demos/tabs/manipulation.html +++ b/demos/tabs/manipulation.html @@ -48,7 +48,7 @@ }); // addTab form: calls addTab function on submit and closes the dialog - var form = dialog.find( "form" ).submit(function( event ) { + var form = dialog.find( "form" ).on( "submit", function( event ) { addTab(); dialog.dialog( "close" ); event.preventDefault(); @@ -70,18 +70,18 @@ // addTab button: just opens the dialog $( "#add_tab" ) .button() - .click(function() { + .on( "click", function() { dialog.dialog( "open" ); }); // close icon: removing the tab on click - tabs.delegate( "span.ui-icon-close", "click", function() { + tabs.on( "click", "span.ui-icon-close", function() { var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" ); $( "#" + panelId ).remove(); tabs.tabs( "refresh" ); }); - tabs.bind( "keyup", function( event ) { + tabs.on( "keyup", function( event ) { if ( event.altKey && event.keyCode === $.ui.keyCode.BACKSPACE ) { var panelId = tabs.find( ".ui-tabs-active" ).remove().attr( "aria-controls" ); $( "#" + panelId ).remove(); -- cgit v1.2.3