mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 05:39:10 +02:00
FIX: Edge case attempting to destroy uninitialized tabs
Another edge case very similar to https://github.com/silverstripe/sapphire/commit/07fb7563273fa82bd93eb255 70571c0a298198e5
This commit is contained in:
parent
ba7dfcfd54
commit
975c6992df
@ -1029,7 +1029,7 @@ jQuery.noConflict();
|
|||||||
this._super();
|
this._super();
|
||||||
},
|
},
|
||||||
onremove: function() {
|
onremove: function() {
|
||||||
this.tabs('destroy');
|
if (this.data('tabs')) this.tabs('destroy');
|
||||||
this._super();
|
this._super();
|
||||||
},
|
},
|
||||||
redrawTabs: function() {
|
redrawTabs: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user