mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-04-30 10:41:30 +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) {
|
||||
if(pointer instanceof TranscludeWidget) {
|
||||
depth--;
|
||||
if(depth === 0) {
|
||||
if(depth <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user