1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-05 03:33:27 +00:00

Merged adjacent if() clauses

This commit is contained in:
Jeremy Ruston 2012-02-20 21:19:12 +00:00
parent aaedf28904
commit bc385abe23

View File

@ -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);
}
}
}