3 ms·
You could if the javascript didn't throw away the return value from setInterval(). If: setInterval(Model.tick,1000/30); were: Model.id = setInterval(
by oneeyedpigeon 11y ago
You could if the javascript didn't throw away the return value from setInterval(). If:
setInterval(Model.tick,1000/30);
were:
Model.id = setInterval(Model.tick,1000/30);
I think you could then clearInterval() and inject your own ‘tick’ method with whatever frequency you wanted. It's a shame there's no actual direct way to vary the frequency, given how brilliantly put-together the rest of the UI is.