Clear transition step interval timer one more time (to make sure it doesn't leak), related to #231

This commit is contained in:
mourner 2011-09-23 18:18:43 +03:00
parent 04afa9b813
commit be575a6622

View File

@ -65,6 +65,7 @@ L.Transition = L.Transition.extend({
this.fire('start'); this.fire('start');
if (L.Transition.NATIVE) { if (L.Transition.NATIVE) {
clearInterval(this._timer);
this._timer = setInterval(this._onFakeStep, this.options.fakeStepInterval); this._timer = setInterval(this._onFakeStep, this.options.fakeStepInterval);
} else { } else {
this._onTransitionEnd(); this._onTransitionEnd();