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:
parent
a2182255cc
commit
d4e0eb193b
@ -50,7 +50,7 @@ SlotWidget.prototype.execute = function() {
|
||||
while(pointer) {
|
||||
if(pointer instanceof TranscludeWidget) {
|
||||
depth--;
|
||||
if(depth === 0) {
|
||||
if(depth <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user