mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-04 12:58:01 +00:00
Slot widget: be more defensive about negative depth values
This commit is contained in:
parent
a2182255cc
commit
d4e0eb193b
@ -50,7 +50,7 @@ SlotWidget.prototype.execute = function() {
|
|||||||
while(pointer) {
|
while(pointer) {
|
||||||
if(pointer instanceof TranscludeWidget) {
|
if(pointer instanceof TranscludeWidget) {
|
||||||
depth--;
|
depth--;
|
||||||
if(depth === 0) {
|
if(depth <= 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user