diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-11-16 16:10:22 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-16 16:10:22 -0500 |
commit | 23f7e30c77820904cc1813fc8b54b809b352a551 (patch) | |
tree | 5862aeb14e2e13c81a67dc873b9c68dfc8f37368 /ui | |
parent | 8f46418c35e597e81ba043f15b25258ab54483f0 (diff) | |
download | jquery-ui-23f7e30c77820904cc1813fc8b54b809b352a551.tar.gz jquery-ui-23f7e30c77820904cc1813fc8b54b809b352a551.zip |
Tabs: Remove ui-tabs-aria-controls data on destroy.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 5b5227128..e557c6cec 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -710,7 +710,9 @@ $.widget( "ui.tabs", { var li = $( this ), prev = li.data( "ui-tabs-aria-controls" ); if ( prev ) { - li.attr( "aria-controls", prev ); + li + .attr( "aria-controls", prev ) + .removeData( "ui-tabs-aria-controls" ); } else { li.removeAttr( "aria-controls" ); } |