We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7af203 commit 0cf6bc0Copy full SHA for 0cf6bc0
ui/jquery.ui.tabs.js
@@ -209,7 +209,7 @@ $.widget( "ui.tabs", {
209
_processTabs: function() {
210
var self = this;
211
212
- this.list = this.element.find( "ol,ul" ).eq( 0 );
+ this.list = this._getList();
213
this.lis = $( " > li:has(a[href])", this.list );
214
this.anchors = this.lis.map(function() {
215
return $( "a", this )[ 0 ];
@@ -241,6 +241,11 @@ $.widget( "ui.tabs", {
241
});
242
},
243
244
+ // allow overriding how to find the list for rare usage scenarios (#7715)
245
+ _getList: function() {
246
+ return this.element.find( "ol,ul" ).eq( 0 );
247
+ },
248
+
249
_createPanel: function( id ) {
250
return $( "<div></div>" )
251
.attr( "id", id )
0 commit comments