mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-04 04:36:55 +00:00
Refactor rendertree to simplify context handling
Get rid of the separate renderContext stack and instead have a parent pointer on renderer nodes. This lets us walk back up the render tree to resolve context references
This commit is contained in:
@@ -60,7 +60,7 @@ ImportWidget.prototype.generate = function() {
|
||||
this.attributes = {
|
||||
"class": classes.join(" ")
|
||||
};
|
||||
this.children = this.renderer.renderTree.createRenderers(this.renderer.renderContext,[fileInput,container]);
|
||||
this.children = this.renderer.renderTree.createRenderers(this.renderer,[fileInput,container]);
|
||||
};
|
||||
|
||||
ImportWidget.prototype.handleChangeEvent = function(event) {
|
||||
|
||||
Reference in New Issue
Block a user