Remove handleMapPostrender extension point

This commit is contained in:
Éric Lemoine
2013-08-31 23:25:08 +02:00
parent 96dfe5656d
commit 96ef1ed3bd
3 changed files with 2 additions and 11 deletions

View File

@@ -77,7 +77,7 @@ ol.control.Control.prototype.getMap = function() {
* UI.
* @param {ol.MapEvent} mapEvent Map event.
*/
ol.control.Control.prototype.handleMapPostrender = function(mapEvent) {};
ol.control.Control.prototype.handleMapPostrender = goog.nullFunction;
/**
@@ -99,8 +99,7 @@ ol.control.Control.prototype.setMap = function(map) {
var target = goog.isDef(this.target_) ?
this.target_ : map.getOverlayContainer();
goog.dom.appendChild(target, this.element);
if (this.handleMapPostrender !==
ol.control.Control.prototype.handleMapPostrender) {
if (this.handleMapPostrender !== goog.nullFunction) {
this.listenerKeys.push(goog.events.listen(map,
ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this));
}