mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Check for dom node not found
This commit is contained in:
parent
0932c15e5c
commit
403a460002
@ -434,7 +434,9 @@ if(index === -1) {
|
||||
var grandParent = parent.parentWidget;
|
||||
if(grandParent && parent.parentDomNode === this.parentDomNode) {
|
||||
index = grandParent.children.indexOf(parent);
|
||||
return parent.findNextSiblingDomNode(index);
|
||||
if(index !== -1) {
|
||||
return parent.findNextSiblingDomNode(index);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user