Skip to content

Commit

Permalink
Also reset frameId in the other place a frame is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 19, 2017
1 parent 1f3000c commit 18f7c51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@ class Map extends Camera {
remove() {
if (this._hash) this._hash.remove();
browser.cancelFrame(this._frameId);
this._frameId = null;
this.setStyle(null);
if (typeof window !== 'undefined') {
window.removeEventListener('resize', this._onWindowResize, false);
Expand Down

0 comments on commit 18f7c51

Please sign in to comment.