aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-12-28 10:07:02 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-12-28 17:24:24 +0100
commit55ebc958793e5a3e5c6ce7e232aa502b320d23ca (patch)
tree41bb542183f1ea569a964c92aaa2d814940648f8 /demos
parent6da708ef8ef15b9f0b18b75214385f8e06585708 (diff)
downloadjquery-ui-55ebc958793e5a3e5c6ce7e232aa502b320d23ca.tar.gz
jquery-ui-55ebc958793e5a3e5c6ce7e232aa502b320d23ca.zip
Tabs: Update manipulation demo - use delegate instead of live (can't use on until we drop core 1.6 support), reuse selected element
Diffstat (limited to 'demos')
-rw-r--r--demos/tabs/manipulation.html2
1 files changed, 1 insertions, 1 deletions
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" );