Use setElementShown instead of showElement

This commit is contained in:
Tom Payne
2013-07-22 17:09:54 +02:00
parent 0467222e46
commit 46d16ba0ca
8 changed files with 20 additions and 19 deletions

View File

@@ -94,7 +94,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
if (goog.isNull(frameState)) {
if (this.renderedVisible_) {
goog.style.showElement(this.canvas_, false);
goog.style.setElementShown(this.canvas_, false);
this.renderedVisible_ = false;
}
return;
@@ -156,7 +156,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
}
if (!this.renderedVisible_) {
goog.style.showElement(this.canvas_, true);
goog.style.setElementShown(this.canvas_, true);
this.renderedVisible_ = true;
}