From 55ebc958793e5a3e5c6ce7e232aa502b320d23ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 28 Dec 2012 10:07:02 +0100 Subject: [PATCH] Tabs: Update manipulation demo - use delegate instead of live (can't use on until we drop core 1.6 support), reuse selected element --- demos/tabs/manipulation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/tabs/manipulation.html b/demos/tabs/manipulation.html index 78859e5c0..9a66076e7 100644 --- a/demos/tabs/manipulation.html +++ b/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" ); -- 2.39.5