forked from MapComplete/MapComplete
Use addCallbackAndRunD where applicable, which deletes many if(value==undefined) checks
This commit is contained in:
parent
d7e421efc9
commit
6576ac36cc
5 changed files with 6 additions and 18 deletions
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue