Comments (3)
I will look into why this is happening - but that is interesting.
However, calling poller.destroy()
basically means you are cleaning up all references internally and never intend to use the poller again.
If you have intentions to restart the poller later, stop
is the right method.
from backbone-poller.
Did you find out why this is happening?
from backbone-poller.
When destroying the poller all event listeners are being destroyed, so trying to re-use a destroyed poller can do weird things.
Basically if you are re-using a destroyed poller you shouldn't destroy it, but stop it,
Only destroy the poller if you do not intend to use it anymore and want to do some garbage collection
from backbone-poller.
Related Issues (20)
- 'complete' event seems to conflict with a jQuery AJAX event HOT 1
- Poller fails to reset after successful fetch HOT 3
- Add some tags HOT 4
- poller with option {update : true} still fires resets HOT 1
- Problem with _.defer(run(this)) in start. HOT 4
- Poller on 'error' fails to return response from model.fetch() HOT 2
- Poller is not stopping when calling the stop method from the "on success" callback
- Poller should resume after condition is met again HOT 9
- How about an option to not stop polling even on error
- Question: Lots of timers HOT 1
- Update test libraries to always use latest
- Release date for 1.0.0 in README incorrect HOT 1
- Cannot use without bower? HOT 2
- Not compatible with lodash HOT 1
- Add option for save HOT 3
- Initialize without starting poll HOT 1
- Can it change options once it is started, especially delay? HOT 2
- How about to have a call back beforeStart? HOT 4
- Restart the poller... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone-poller.