backbone-poller
backbone-poller copied to clipboard
Can it change options once it is started, especially delay?
Thinking to have settings to control delay.. and it can be user set value.. Seems delay can only be set during initialization??
You can also set it with the getPoller() method:
var poller = PollingManager.getPoller(model, {delay: 100}).start();
// change the delay to 200
poller = PollingManager.getPoller(model, {delay: 200}).start();
This will technically stop the poller and start it with the new variable for delay
Thanks.. I was under the wrong impression that getPoller will return different instance when it is called.