Skip to content

Commit 3ccf86c

Browse files
committed
Tabs manipulation demo: Update for aria-controls.
1 parent 5c9d9f9 commit 3ccf86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/tabs/manipulation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676

7777
// close icon: removing the tab on click
7878
$( "#tabs span.ui-icon-close" ).live( "click", function() {
79-
$( this ).closest( "li" ).remove();
80-
$( "#" + $( this ).prev().attr( "aria-controls" ) ).remove();
79+
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
80+
$( "#" + panelId ).remove();
8181
tabs.tabs( "refresh" );
8282
});
8383
});

0 commit comments

Comments
 (0)