fastdom: unneeded measure
This commit is contained in:
parent
334fda7c0d
commit
e33d7263ee
1 changed files with 3 additions and 6 deletions
|
|
@ -60,12 +60,9 @@ class UiInspector extends UiWidget {
|
|||
|
||||
var textarea = DOM.get(this.container, `textarea[name="${name}"]`)
|
||||
if (textarea) {
|
||||
fastdom.measure(()=>{
|
||||
var bool = !node.classList.contains('on')
|
||||
fastdom.mutate(()=>{
|
||||
textarea[0].value = bool
|
||||
DOM.dispatchEvent(textarea[0], 'change')
|
||||
})
|
||||
fastdom.mutate(()=>{
|
||||
textarea[0].value = !node.classList.contains('on')
|
||||
DOM.dispatchEvent(textarea[0], 'change')
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue