Closed kingo55 closed 4 years ago
@dapperdrop and I think this function could be cleaned up. We don't strictly need to add an empty function during runRecipe do we?:
runRecipe
this.chosenRecipe = recipe; var success = false; try { // Test level css if (this.options.css) { this.injectCSS(this.options.css); } // Recipe level css if (recipe.css) { this.injectCSS(recipe.css); } // Recipe level js if (recipe.js) { recipe.js(this); } success = true; this.log("Test Object [" + this.options.name + "][" + this.options.id + "] recipe onChosen [" + recipe.name + "][" + recipe.id + "] run."); }
@kingo55 Yes, this looks better.
@dapperdrop and I think this function could be cleaned up. We don't strictly need to add an empty function during
runRecipe
do we?: