Calls the "onStop()" handler, if defined.
if (typeof this.onStop == "function"){ this.onStop(); } this.isRunning = false; window.clearInterval(this.timer);