From 5b271bb4f493119465bd22564bd74b5758bb1d98 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Thu, 6 Apr 2023 08:50:47 +0100 Subject: [PATCH] Fix nonstandard initialisation code for fill/parameter/slot widgets --- core/modules/widgets/fill.js | 2 +- core/modules/widgets/parameters.js | 2 +- core/modules/widgets/slot.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/widgets/fill.js b/core/modules/widgets/fill.js index 561e75a9c..de88c95af 100644 --- a/core/modules/widgets/fill.js +++ b/core/modules/widgets/fill.js @@ -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; diff --git a/core/modules/widgets/parameters.js b/core/modules/widgets/parameters.js index 890e9862a..69194cb9e 100644 --- a/core/modules/widgets/parameters.js +++ b/core/modules/widgets/parameters.js @@ -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 diff --git a/core/modules/widgets/slot.js b/core/modules/widgets/slot.js index aa9994a03..6fc402ac2 100644 --- a/core/modules/widgets/slot.js +++ b/core/modules/widgets/slot.js @@ -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