mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-20 06:02:51 +00:00
Parameters widget: Be defensive about negative depths
This commit is contained in:
parent
d4e0eb193b
commit
745707fea3
@ -49,7 +49,7 @@ ParametersWidget.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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user