diff options
-rw-r--r-- | index.js | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,6 +1,25 @@ /// <reference types="../CTAutocomplete" /> /// <reference lib="es2015" /> +import SoopyGuiElement from "../guimanager/GuiElement/SoopyGuiElement.js" +import SoopyBoxElement from "../guimanager/GuiElement/SoopyBoxElement" + +SoopyGuiElement.prototype.clearChildren = function (){ + let theParent = this.innerObjectPaddingThing || this + theParent.children.forEach(child => { + child.setParent(undefined) + }); + theParent.children = [] + return this +} +SoopyBoxElement.prototype.clearChildren = function (){ + let theParent = this.innerObjectPaddingThing || this + theParent.children.forEach(child => { + child.setParent(undefined) + }); + theParent.children = [] + return this +} class SoopyAddons { constructor(){ this.FeatureManager = require("./featureClass/featureManager.js") |