chiark / gitweb /
dice js: Make s.anim_id be possibly null
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Apr 2022 11:27:14 +0000 (12:27 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Apr 2022 11:56:10 +0000 (12:56 +0100)
commit03310afb4168c8db7261b2dda7b81edea9154c12
tree59cba90b41f6bfa2e2638940c35c3b2fd0071459
parent9dfa0b295c09ab1f21a6759d61328f84fd2bf6b7
dice js: Make s.anim_id be possibly null

We might not have requested an animation frame.  If so we shouldn't
cancel it.  Nor, if we have already cancelled it, or if it has
occurred.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts