Fix issue with _super
being removed from listeners
See https://github.com/CartoDB/cartodb.js/issues/478#issuecomment-102415466 for more details.
This commit is contained in:
parent
321258a891
commit
999b4d49f4
@ -21,9 +21,10 @@ GMapsTileLoader.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_removeTileLoader: function() {
|
_removeTileLoader: function() {
|
||||||
for(var i in this._listeners) {
|
this._listeners.forEach(function (listener) {
|
||||||
google.maps.event.removeListener(this._listeners[i]);
|
google.maps.event.removeListener(listener);
|
||||||
}
|
});
|
||||||
|
|
||||||
this._removeTiles();
|
this._removeTiles();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user