Rename a property
This commit is contained in:
committed by
Antoine Abt
parent
712f451179
commit
0724300685
@@ -28,7 +28,7 @@ ol.render.Box = function(opt_style) {
|
|||||||
* @private
|
* @private
|
||||||
* @type {goog.events.Key}
|
* @type {goog.events.Key}
|
||||||
*/
|
*/
|
||||||
this.postComposeListenKey_ = null;
|
this.postComposeListenerKey_ = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -117,15 +117,15 @@ ol.render.Box.prototype.requestMapRenderFrame_ = function() {
|
|||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
*/
|
*/
|
||||||
ol.render.Box.prototype.setMap = function(map) {
|
ol.render.Box.prototype.setMap = function(map) {
|
||||||
if (!goog.isNull(this.postComposeListenKey_)) {
|
if (!goog.isNull(this.postComposeListenerKey_)) {
|
||||||
goog.events.unlistenByKey(this.postComposeListenKey_);
|
goog.events.unlistenByKey(this.postComposeListenerKey_);
|
||||||
this.postComposeListenKey_ = null;
|
this.postComposeListenerKey_ = null;
|
||||||
this.map_.requestRenderFrame();
|
this.map_.requestRenderFrame();
|
||||||
this.map_ = null;
|
this.map_ = null;
|
||||||
}
|
}
|
||||||
this.map_ = map;
|
this.map_ = map;
|
||||||
if (!goog.isNull(this.map_)) {
|
if (!goog.isNull(this.map_)) {
|
||||||
this.postComposeListenKey_ = goog.events.listen(
|
this.postComposeListenerKey_ = goog.events.listen(
|
||||||
map, ol.render.EventType.POSTCOMPOSE, this.handleMapPostCompose_, false,
|
map, ol.render.EventType.POSTCOMPOSE, this.handleMapPostCompose_, false,
|
||||||
this);
|
this);
|
||||||
this.requestMapRenderFrame_();
|
this.requestMapRenderFrame_();
|
||||||
|
|||||||
Reference in New Issue
Block a user