Remove goog.style.setElementShown

This commit is contained in:
nicholas
2016-03-25 18:03:04 +13:00
committed by Nicholas L
parent 96a14e0515
commit 04c4b4efc1
7 changed files with 19 additions and 27 deletions

View File

@@ -469,7 +469,7 @@ ol.Overlay.prototype.setPositioning = function(positioning) {
*/
ol.Overlay.prototype.setVisible = function(visible) {
if (this.rendered_.visible !== visible) {
goog.style.setElementShown(this.element_, visible);
this.element_.style.display = visible ? '' : 'none';
this.rendered_.visible = visible;
}
};