fix compilation - private property cannot be used in subclasses

This commit is contained in:
Éric Lemoine
2012-07-19 00:00:23 +02:00
parent db91206d41
commit 62f3f46b51

View File

@@ -55,7 +55,7 @@ ol.dom.LayerRenderer.prototype.setOrigin = function(origin) {
* @inheritDoc
*/
ol.dom.LayerRenderer.prototype.handleLayerOpacityChange = function() {
goog.style.setOpacity(this.target, this.layer_.getOpacity());
goog.style.setOpacity(this.target, this.getLayer().getOpacity());
};
@@ -63,7 +63,7 @@ ol.dom.LayerRenderer.prototype.handleLayerOpacityChange = function() {
* @inheritDoc
*/
ol.dom.LayerRenderer.prototype.handleLayerVisibleChange = function() {
goog.style.showElement(this.target, this.layer_.getVisible());
goog.style.showElement(this.target, this.getLayer().getVisible());
};