mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-17 15:21:22 +00:00
Slot widget: be more defensive about negative depth values
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user