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:
Ilya Radchenko 2015-05-15 11:29:30 -04:00
parent 321258a891
commit 999b4d49f4

View File

@ -21,9 +21,10 @@ GMapsTileLoader.prototype = {
},
_removeTileLoader: function() {
for(var i in this._listeners) {
google.maps.event.removeListener(this._listeners[i]);
}
this._listeners.forEach(function (listener) {
google.maps.event.removeListener(listener);
});
this._removeTiles();
},