From a2182255cc1e6dce864311c89ae71bb33c43432c Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 19 Jul 2022 10:02:09 +0100 Subject: [PATCH] Simplify the fill widget We can rely on the default processing in the base class --- core/modules/widgets/fill.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/core/modules/widgets/fill.js b/core/modules/widgets/fill.js index 212621b1a..561e75a9c 100644 --- a/core/modules/widgets/fill.js +++ b/core/modules/widgets/fill.js @@ -24,33 +24,6 @@ Inherit from the base widget class */ FillWidget.prototype = Object.create(Widget.prototype); -/* -Render this widget into the DOM -*/ -FillWidget.prototype.render = function(parent,nextSibling) { - // Call the constructor - Widget.call(this); - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -FillWidget.prototype.execute = function() { - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -FillWidget.prototype.refresh = function(changedTiddlers) { - return this.refreshChildren(changedTiddlers); -}; - exports.fill = FillWidget; })();