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

@@ -4,7 +4,6 @@ goog.provide('ol.renderer.canvas.Map');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.style');
goog.require('goog.vec.Mat4');
goog.require('ol');
goog.require('ol.RendererType');
@@ -149,7 +148,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
if (!frameState) {
if (this.renderedVisible_) {
goog.style.setElementShown(this.canvas_, false);
this.canvas_.style.display = 'none'; //Hide the element
this.renderedVisible_ = false;
}
return;
@@ -200,7 +199,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
ol.render.EventType.POSTCOMPOSE, frameState);
if (!this.renderedVisible_) {
goog.style.setElementShown(this.canvas_, true);
this.canvas_.style.display = ''; //Show the element
this.renderedVisible_ = true;
}