From 29809e2395cbd9550e7f8970bfa3c8eb3505cfc8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 21 Jan 2020 07:01:43 -0700 Subject: [PATCH] First run at TS for valueWidget --- api/js/etemplate/et2_core_valueWidget.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/js/etemplate/et2_core_valueWidget.ts b/api/js/etemplate/et2_core_valueWidget.ts index 221a19c16c..a56a65bc7d 100644 --- a/api/js/etemplate/et2_core_valueWidget.ts +++ b/api/js/etemplate/et2_core_valueWidget.ts @@ -41,9 +41,6 @@ export class et2_valueWidget extends et2_baseWidget } }; - label: string = ''; - protected _labelContainer: JQuery = null; - /** * * @@ -59,7 +56,7 @@ export class et2_valueWidget extends et2_baseWidget // Set the value for this element var contentMgr = this.getArrayMgr("content"); if (contentMgr != null) { - var val = contentMgr.getEntry(this.id,false,true); + let val = contentMgr.getEntry(this.id, false, true); if (val !== null) { _attrs["value"] = val; @@ -74,7 +71,7 @@ export class et2_valueWidget extends et2_baseWidget } } - set_label(_value : string) + set_label(_value) { // Abort if there was no change in the label if (_value == this.label)