Don't check visibility before hiding.

In some cases the element is not visible,but we want to set 'display: None'
regardless, for example in cases where you only want one single chat of
multiple to be visible at any one time, while hiding it behind a sidebar.
This commit is contained in:
JC Brand 2016-06-17 17:43:09 +02:00
parent d2933b896e
commit b90ad3aa6e

View File

@ -659,10 +659,8 @@
}, },
hide: function () { hide: function () {
if (this.$el.is(':visible') && this.$el.css('opacity') === "1") { this.$el.hide();
this.$el.hide(); utils.refreshWebkit();
utils.refreshWebkit();
}
return this; return this;
}, },