widget: cast visibility attribute as boolean to avoid comparison mistakes
This commit is contained in:
parent
9179419e88
commit
0f458cf841
1 changed files with 2 additions and 2 deletions
|
|
@ -1255,10 +1255,10 @@ class Widget extends EventEmitter {
|
|||
|
||||
setVisibility() {
|
||||
|
||||
|
||||
var visible = this.isVisible()
|
||||
|
||||
if (visible !== this.visible) {
|
||||
this.visible = visible
|
||||
this.visible = !!visible
|
||||
this.container.style.display = this.getProp('visible') ? '' : 'none'
|
||||
|
||||
for (var c of this.children) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue