Skip to content

Commit 55ebc95

Browse files
committed
Tabs: Update manipulation demo - use delegate instead of live (can't use on until we drop core 1.6 support), reuse selected element
1 parent 6da708e commit 55ebc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/tabs/manipulation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
});
7676

7777
// close icon: removing the tab on click
78-
$( "#tabs span.ui-icon-close" ).live( "click", function() {
78+
tabs.delegate( "span.ui-icon-close", "click", function() {
7979
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
8080
$( "#" + panelId ).remove();
8181
tabs.tabs( "refresh" );

0 commit comments

Comments
 (0)