kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Pop storyview: fix bug where targetElement is null (#4143)
rodzic
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();
|
||||
}
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue