Pop storyview: fix bug where targetElement is null (#4143)

fix-syncer
Simon Huber 2019-08-02 09:51:16 +02:00 zatwierdzone przez Jeremy Ruston
rodzic 64fe260f4d
commit fab67a463b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -72,7 +72,7 @@ PopStoryView.prototype.remove = function(widget) {
var targetElement = widget.findFirstDomNode(),
duration = $tw.utils.getAnimationDuration(),
removeElement = function() {
if(targetElement.parentNode) {
if(targetElement && targetElement.parentNode) {
widget.removeChildDomNodes();
}
};