Skip to content

Commit

Permalink
[FIX] layer instance remove
Browse files Browse the repository at this point in the history
  • Loading branch information
maelkermann committed Oct 23, 2017
1 parent fcaa8f1 commit 2989eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ Map.prototype.clear = function(callback) {
id = ids[i];
instance = obj[id];
if (instance) {
if (typeof instance.remove === "function") {
/*if (typeof instance.remove === "function") {
instance.remove();
}
}*/
instance.off();
delete obj[id];
}
Expand Down

0 comments on commit 2989eb8

Please sign in to comment.