1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-25 00:16:52 +00:00

Fix nonstandard initialisation code for fill/parameter/slot widgets

This commit is contained in:
jeremy@jermolene.com 2023-04-06 08:50:47 +01:00
parent bb2dea2414
commit 5b271bb4f4
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ var FillWidget = function(parseTreeNode,options) {
/*
Inherit from the base widget class
*/
FillWidget.prototype = Object.create(Widget.prototype);
FillWidget.prototype = new Widget();
exports.fill = FillWidget;

View File

@ -23,7 +23,7 @@ var ParametersWidget = function(parseTreeNode,options) {
/*
Inherit from the base widget class
*/
ParametersWidget.prototype = Object.create(Widget.prototype);
ParametersWidget.prototype = new Widget();
/*
Render this widget into the DOM

View File

@ -23,7 +23,7 @@ var SlotWidget = function(parseTreeNode,options) {
/*
Inherit from the base widget class
*/
SlotWidget.prototype = Object.create(Widget.prototype);
SlotWidget.prototype = new Widget();
/*
Render this widget into the DOM