Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Add option for save #47

Open
scott-w opened this issue Aug 30, 2017 · 3 comments
Open

Add option for save #47

scott-w opened this issue Aug 30, 2017 · 3 comments

Comments

@scott-w
Copy link
Contributor

scott-w commented Aug 30, 2017

I'm just working on a feature that provides auto-save capabilities and it'd be really nice to use backbone-poller to achieve this.

My thinking is the API could be:

this.poller = Poller.get(this.model, {method: 'save'});

With method defaulting to fetch.

@ukilon-okta
Copy link
Contributor

Sure. It's not s poller per-se at that point, but i can't see reason why not

@scott-w
Copy link
Contributor Author

scott-w commented Aug 30, 2017

I do agree, it was something that went through my head as I wrote Poller.get - it doesn't suggest that POST/PUT operations will occur

@uzikilon
Copy link
Owner

Poller.get is more of a singleton getInstance rather than HTTP GET, but in general, polling should have no side affect. in anywise, leave semantics aside, if you could add this to the code that'd be great

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants