fix small typo (add -> remove) (#295)

This commit is contained in:
Marius Andra 2016-12-22 20:06:35 +01:00 committed by Ivan Starkov
parent 7a2cf5fbc0
commit 4da59f0242

View File

@ -331,7 +331,7 @@ export default class GoogleMap extends Component {
mapDom.removeEventListener('mousedown', this._onMapMouseDownNative, true);
window.removeEventListener('mouseup', this._onChildMouseUp, false);
window.removeEventListener('touchmove', this._onTouchMove);
detectElementResize.addResizeListener(mapDom, that._mapDomResizeCallback);
detectElementResize.removeResizeListener(mapDom, that._mapDomResizeCallback);
if (this.overlay_) {
// this triggers overlay_.onRemove(), which will unmount the <GoogleMapMarkers/>