mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-04 20:51:30 +00:00
Pop storyview: fix bug where targetElement is null (#4143)
This commit is contained in:
committed by
Jeremy Ruston
parent
64fe260f4d
commit
fab67a463b
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user