Do truthy check in if block
This commit is contained in:
parent
89a26684e5
commit
e4d6aa30a1
1 changed files with 3 additions and 3 deletions
|
@ -66,10 +66,10 @@ class BooleanAttribute extends WebViewAttribute {
|
||||||
}
|
}
|
||||||
|
|
||||||
setValue (value) {
|
setValue (value) {
|
||||||
if (!value) {
|
if (value) {
|
||||||
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
|
||||||
} else {
|
|
||||||
this.webViewImpl.webviewNode.setAttribute(this.name, '')
|
this.webViewImpl.webviewNode.setAttribute(this.name, '')
|
||||||
|
} else {
|
||||||
|
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue