]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Keep reference to existing tablist during refresh. Fixes #9584 - Tabs: Refresh...
authorScott González <scott.gonzalez@gmail.com>
Fri, 4 Oct 2013 14:10:30 +0000 (10:10 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 20:10:34 +0000 (15:10 -0500)
(cherry picked from commit e14f75ed480e5b036bb47ab3398d1e0df28a128a)

ui/jquery.ui.tabs.js

index 4362421db7c6d88fb056b792e72b8f71ceca6d76..27fb88054f1817b8e90ce22f4920dd2cb3d515cf 100644 (file)
@@ -441,7 +441,7 @@ $.widget( "ui.tabs", {
 
        // allow overriding how to find the list for rare usage scenarios (#7715)
        _getList: function() {
-               return this.element.find( "ol,ul" ).eq( 0 );
+               return this.tablist || this.element.find( "ol,ul" ).eq( 0 );
        },
 
        _createPanel: function( id ) {