Skip to content

Commit

Permalink
Revert "fix(InfoBox): Unmounting an InfoBox should remove all listene…
Browse files Browse the repository at this point in the history
…rs. (#412)"

This reverts commit d18a194.
  • Loading branch information
tomchentw authored Apr 20, 2017
1 parent d18a194 commit af0bb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/addons/InfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default _.flowRight(
componentWillUnmount() {
const infoBox = getInstanceFromComponent(this);
if (infoBox) {
infoBox.close();
infoBox.setMap(null);
}
},

Expand Down

0 comments on commit af0bb43

Please sign in to comment.