mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-02-03 14:22:24 -08:00
Slot widget: be more defensive about negative depth values
This commit is contained in:
parent
a2182255cc
commit
d4e0eb193b
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ SlotWidget.prototype.execute = function() {
|
|||
while(pointer) {
|
||||
if(pointer instanceof TranscludeWidget) {
|
||||
depth--;
|
||||
if(depth === 0) {
|
||||
if(depth <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue