Add get_value() to match legacy

This commit is contained in:
nathan 2021-08-24 14:44:45 -06:00
parent 538e483499
commit d127cae5c6

View File

@ -435,6 +435,11 @@ export const Et2InputWidget = <T extends Constructor>(superClass: T) =>
this.value = new_value; this.value = new_value;
} }
get_value()
{
return this.getValue();
}
getValue() getValue()
{ {
return typeof this.serializedValue !== "undefined" ? this.serializedValue : this.modalValue; return typeof this.serializedValue !== "undefined" ? this.serializedValue : this.modalValue;
@ -443,11 +448,11 @@ export const Et2InputWidget = <T extends Constructor>(superClass: T) =>
isDirty() isDirty()
{ {
let value = this.getValue(); let value = this.getValue();
if (typeof value !== typeof this._oldValue) if(typeof value !== typeof this._oldValue)
{ {
return true; return true;
} }
if (this._oldValue === value) if(this._oldValue === value)
{ {
return false; return false;
} }