leaflet-velocity
leaflet-velocity copied to clipboard
ERROR TypeError: "this.animationBucket is undefined"
Sometimes I get the following error:

But the component still works. I looked into the source and found the following:
Windy.prototype.stop = function () {
this.particules.splice(0, this.particules.length);
this.animationBucket.clear();
if (this.animationLoop) {
clearTimeout(this.animationLoop);
this.animationLoop = null;
}
};
I am not sure why this is happening but isn't it safe to check for null and then apply clear() method?