TypeError: data.collapseCondition is not a function

Lots of logspam relating to this error. If data is {}
this error will be thrown which is possible given the
code.

This is possible if a gadget rewrites tabs

e.g.
$( '#p-views ul' ).remove().append($('<ul>'))

Change-Id: I0d3f391fccdb38758fb3cfd7e84889143d479b1e
This commit is contained in:
jdlrobson 2021-02-10 17:45:43 -08:00 committed by Jdlrobson
parent 6f16af4212
commit daf6a798c4
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function init() {
var $tab,
data = $.collapsibleTabs.getSettings( $el );
if ( data.shifting ) {
if ( $.isEmptyObject( data ) || data.shifting ) {
return;
}