I think you forgot to change the `Timer.Panel.prototype.onvisibilitychange` signature to accept an event object instead of just a boolean flag.