mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-19 13:24:27 +00:00
Refactor widget implementation
This commit is contained in:
1 parent
0055947913
commit
3e06bca347
8 files changed
+67
-66
No files matched your search
@@ -39,7 +39,8 @@ var WidgetRenderer = function(renderTree,renderContext,parseTreeNode) {
|
||||
// Create the widget object
|
||||
var WidgetClass = this.renderTree.parser.vocabulary.widgetClasses[this.parseTreeNode.tag];
|
||||
if(WidgetClass) {
|
||||
this.widget = new WidgetClass(this);
|
||||
this.widget = new WidgetClass();
|
||||
this.widget.init(this);
|
||||
} else {
|
||||
// Error if we couldn't find the widget
|
||||
this.children = this.renderTree.createRenderers(this.renderContext,[
|
||||
|
||||
Reference in new issue
Block a user