From 8206f11372e4999ba545fc95349ed147585e14ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 12 Jul 2012 08:20:42 +0200 Subject: [PATCH] be more explicit when calling goog.events.listen and unlisten --- src/ol/control/Attribution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/control/Attribution.js b/src/ol/control/Attribution.js index 9ec0f391b1..b681293e04 100644 --- a/src/ol/control/Attribution.js +++ b/src/ol/control/Attribution.js @@ -57,7 +57,7 @@ ol.control.Attribution.prototype.setMap = function(map) { ol.control.Attribution.prototype.activate = function() { var active = goog.base(this, 'activate'); if (active) { - goog.events.listen(this.map_, 'layeradd', this.update, undefined, this); + goog.events.listen(this.map_, 'layeradd', this.update, false, this); this.update(); } return active; @@ -67,7 +67,7 @@ ol.control.Attribution.prototype.activate = function() { ol.control.Attribution.prototype.deactivate = function() { var inactive = goog.base(this, 'deactivate'); if (inactive) { - goog.events.unlisten(this.map_, 'layeradd', this.update, undefined, this); + goog.events.unlisten(this.map_, 'layeradd', this.update, false, this); } return inactive; };