mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tabs: Update manipulation demo - use delegate instead of live (can't use on until we drop core 1.6 support), reuse selected element
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
});
|
||||
|
||||
// close icon: removing the tab on click
|
||||
$( "#tabs span.ui-icon-close" ).live( "click", function() {
|
||||
tabs.delegate( "span.ui-icon-close", "click", function() {
|
||||
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
|
||||
$( "#" + panelId ).remove();
|
||||
tabs.tabs( "refresh" );
|
||||
|
||||
Reference in New Issue
Block a user