kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Merged adjacent if() clauses
rodzic
aaedf28904
commit
bc385abe23
|
@ -59,13 +59,11 @@ var MacroNode = function(macroName,srcParams,children,store,dependencies) {
|
||||||
}
|
}
|
||||||
for(var m in this.macro.params) {
|
for(var m in this.macro.params) {
|
||||||
var paramInfo = this.macro.params[m];
|
var paramInfo = this.macro.params[m];
|
||||||
if(m in srcParams) {
|
if(m in srcParams && paramInfo.type === "tiddler") {
|
||||||
if(paramInfo.type === "tiddler") {
|
if(typeof srcParams[m] === "function") {
|
||||||
if(typeof srcParams[m] === "function") {
|
this.dependencies.dependentAll = true;
|
||||||
this.dependencies.dependentAll = true;
|
} else {
|
||||||
} else {
|
this.dependencies.addDependency(srcParams[m],paramInfo.skinny);
|
||||||
this.dependencies.addDependency(srcParams[m],paramInfo.skinny);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue