Skip to content
Permalink
Browse files

Tabs: Update manipulation demo - use delegate instead of live (can't …

…use on until we drop core 1.6 support), reuse selected element
  • Loading branch information
jzaefferer committed Dec 28, 2012
1 parent 6da708e commit 55ebc958793e5a3e5c6ce7e232aa502b320d23ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/tabs/manipulation.html
@@ -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" );

0 comments on commit 55ebc95

Please sign in to comment.
You can’t perform that action at this time.