mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-16 22:31:23 -08:00
Merged adjacent if() clauses
This commit is contained in:
parent
aaedf28904
commit
bc385abe23
1 changed files with 5 additions and 7 deletions
|
|
@ -59,13 +59,11 @@ var MacroNode = function(macroName,srcParams,children,store,dependencies) {
|
|||
}
|
||||
for(var m in this.macro.params) {
|
||||
var paramInfo = this.macro.params[m];
|
||||
if(m in srcParams) {
|
||||
if(paramInfo.type === "tiddler") {
|
||||
if(typeof srcParams[m] === "function") {
|
||||
this.dependencies.dependentAll = true;
|
||||
} else {
|
||||
this.dependencies.addDependency(srcParams[m],paramInfo.skinny);
|
||||
}
|
||||
if(m in srcParams && paramInfo.type === "tiddler") {
|
||||
if(typeof srcParams[m] === "function") {
|
||||
this.dependencies.dependentAll = true;
|
||||
} else {
|
||||
this.dependencies.addDependency(srcParams[m],paramInfo.skinny);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue