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) {
|
||||
if (!value) {
|
||||
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
||||
} else {
|
||||
if (value) {
|
||||
this.webViewImpl.webviewNode.setAttribute(this.name, '')
|
||||
} else {
|
||||
this.webViewImpl.webviewNode.removeAttribute(this.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue