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
+1 -1
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;
+1 -1
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
+1 -1
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