]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Update manipulation demo - use delegate instead of live (can't use on until...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 28 Dec 2012 09:07:02 +0000 (10:07 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 28 Dec 2012 16:24:24 +0000 (17:24 +0100)
demos/tabs/manipulation.html

index 78859e5c03bac21f4275f9683e7fc0e0ac28c444..9a66076e70e2246597f98c9cb8236699b58c67b6 100644 (file)
@@ -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" );