diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-28 10:07:02 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-28 17:24:24 +0100 |
commit | 55ebc958793e5a3e5c6ce7e232aa502b320d23ca (patch) | |
tree | 41bb542183f1ea569a964c92aaa2d814940648f8 /demos | |
parent | 6da708ef8ef15b9f0b18b75214385f8e06585708 (diff) | |
download | jquery-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.html | 2 |
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" ); |