From a90946a05df0fa005e205c84466736142e90e7a0 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 21 Jan 2020 06:54:24 -0700 Subject: [PATCH] Some return types --- api/js/etemplate/et2_core_DOMWidget.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/et2_core_DOMWidget.ts b/api/js/etemplate/et2_core_DOMWidget.ts index f0b5115ff0..1d9dd8d0a8 100644 --- a/api/js/etemplate/et2_core_DOMWidget.ts +++ b/api/js/etemplate/et2_core_DOMWidget.ts @@ -100,7 +100,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode default:'', description: "Sets background image, left, right and scale on DOM", } - } + }; parentNode : HTMLElement = null; disabled : boolean = false; @@ -259,7 +259,8 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode private _surroundingsMgr : et2_surroundingsMgr; - getSurroundings() { + getSurroundings() : et2_surroundingsMgr + { if (!this._surroundingsMgr) { this._surroundingsMgr = new et2_surroundingsMgr(this); @@ -382,14 +383,16 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode /** * Returns the parent node. */ - getParentDOMNode() { + getParentDOMNode() : HTMLElement + { return this.parentNode; } /** * Returns the index of this element in the DOM tree */ - getDOMIndex() { + getDOMIndex() : number + { if (this.getParent()) { var idx = 0;