Tweaked mechanism so that macros can be nested directly inside other macros

This commit is contained in:
Jeremy Ruston
2012-06-09 18:50:01 +01:00
parent 1251a35375
commit 9247bb0186
5 changed files with 5 additions and 2 deletions
+2
View File
@@ -177,6 +177,7 @@ Macro.prototype.render = function(type) {
Macro.prototype.renderInDom = function(parentDomNode,insertBefore) {
if(this.child) {
this.child.renderInDom(parentDomNode,insertBefore);
this.domNode = this.child.domNode;
this.addEventHandlers();
this.postRenderInDom();
}
@@ -221,6 +222,7 @@ Macro.prototype.refreshInDom = function(changes) {
parent.removeChild(this.child.domNode);
this.execute(this.parents,this.tiddlerTitle);
this.child.renderInDom(parent,nextSibling);
this.domNode = this.child.domNode;
this.addEventHandlers();
} else {
if(this.child) {