From aaedf289049e7ce17f907a5a2e22ba1b410f1f54 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 20 Feb 2012 21:00:12 +0000 Subject: [PATCH] Minor re-enhancements --- js/Renderer.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/js/Renderer.js b/js/Renderer.js index a2b5c49c8..f89978e8e 100644 --- a/js/Renderer.js +++ b/js/Renderer.js @@ -25,25 +25,18 @@ Node.prototype.clone = function() { return this; }; -Node.prototype.execute = function(parents,tiddler) { -}; - -Node.prototype.render = function(type) { -}; - -Node.prototype.renderInDom = function(domNode) { -}; - -Node.prototype.refresh = function(changes) { -}; - -Node.prototype.refreshInDom = function(changes) { +Node.prototype.execute = +Node.prototype.render = +Node.prototype.renderInDom = +Node.prototype.refresh = +Node.prototype.refreshInDom = function() { + // All these methods are noops by default }; /* Construct a renderer node representing a macro invocation macroName: name of the macro - params: a hashmap of parameters (each can be a string, or a fn(tiddler,store,utils) for evaluated parameters) + srcParams: a hashmap of parameters (each can be a string, or a fn(tiddler,store,utils) for evaluated parameters) children: optional array of child nodes store: reference to the WikiStore associated with this macro */