Use addCallbackAndRunD where applicable, which deletes many if(value==undefined) checks

This commit is contained in:
Pieter Vander Vennet 2021-06-30 15:38:14 +02:00
parent d7e421efc9
commit 6576ac36cc
5 changed files with 6 additions and 18 deletions

View file

@ -16,10 +16,7 @@ private readonly _element : HTMLElement
el.type = "color"
this.value.addCallbackAndRun(v => {
if(v === undefined){
return;
}
this.value.addCallbackAndRunD(v => {
el.value =v
});