1
0
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:
Jermolene 2015-05-03 16:56:37 +01:00
parent 0932c15e5c
commit 403a460002

View File

@ -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;
};