mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-08 02:03:03 -08:00
Refactor widget implementation
This commit is contained in:
parent
0055947913
commit
3e06bca347
8 changed files with 67 additions and 66 deletions
|
|
@ -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,[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue