mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Merged adjacent if() clauses
This commit is contained in:
		| @@ -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); |  | ||||||
| 							} |  | ||||||
| 						} | 						} | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston