mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-30 23:36:56 +00:00
Merged adjacent if() clauses
This commit is contained in:
parent
aaedf28904
commit
bc385abe23
@ -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…
x
Reference in New Issue
Block a user