1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-17 20:52:52 +00:00

Slot widget: be more defensive about negative depth values

This commit is contained in:
jeremy@jermolene.com 2022-07-19 10:26:20 +01:00
parent a2182255cc
commit d4e0eb193b

View File

@ -50,7 +50,7 @@ SlotWidget.prototype.execute = function() {
while(pointer) {
if(pointer instanceof TranscludeWidget) {
depth--;
if(depth === 0) {
if(depth <= 0) {
break;
}
}