Skip to content

Commit

Permalink
Merge pull request #1002 from adube/fix-gmf-featurestyle-evt-unlisten
Browse files Browse the repository at this point in the history
Fix event unlistening in gmf-featurestyle
  • Loading branch information
fgravin committed Apr 11, 2016
2 parents 526f021 + d425ddc commit dfa5ef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contribs/gmf/src/directives/featurestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ gmf.FeaturestyleController.prototype.handleFeatureSet_ = function(
var keys = this.featureListenerKeys_;

if (previousFeature) {
keys.forEach(function(key) {
ol.events.unlistenByKey(key);
}, this);
this.type = null;
this.color = null;
this.measure = null;
Expand Down

0 comments on commit dfa5ef3

Please sign in to comment.