mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-02 08:33:01 +00:00
Parameters widget: Be defensive about negative depths
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user