Skip to content

Commit

Permalink
Add an _ to intervalId
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeh committed Aug 29, 2013
1 parent 427ea66 commit 415fe9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bouncemarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
var self = this;

var start = new Date();
self.intervalId = setInterval(function () {
self._intervalId = setInterval(function () {
var timePassed = new Date() - start;
var progress = timePassed / opts.duration;
if (progress > 1) {
Expand All @@ -64,7 +64,7 @@
opts.step(delta);
if (progress === 1) {
opts.end();
clearInterval(self.intervalId);
clearInterval(self._intervalId);
}
}, opts.delay || 10);
},
Expand Down Expand Up @@ -182,7 +182,7 @@
},

onRemove: function (map) {
clearInterval(this.intervalId);
clearInterval(this._intervalId);
originalOnRemove.call(this, map);
}
});
Expand Down

0 comments on commit 415fe9d

Please sign in to comment.