Do truthy check in if block

This commit is contained in:
Kevin Sawicki 2016-11-03 11:37:11 -07:00
parent 89a26684e5
commit e4d6aa30a1

View file

@ -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)
}
}
}