alekseykulikov / backbone-offline

[Deprecated] Allows your Backbone.js app to work offline
MIT License
720 stars 56 forks source link

Error in docs / how do I call pull()/push() ? #10

Closed rjmackay closed 12 years ago

rjmackay commented 12 years ago

Your docs suggest calling push like this: dreams.sync.push()

But this doesn't work as sync is undefined. Can you provide more info on how this is intended to be used?

gilbert commented 12 years ago

It's a typo in the readme. The real way to call it is:

# storage is the name of the variable that you set (@storage in the readme)
dreams.storage.sync.push()
alekseykulikov commented 12 years ago

Thank you @mindeavor for correct answer. It was a typo error and I fixed it. Project is a new and documentation still not perfect and has inaccuracies.

masfusion commented 11 years ago

This is still an issue and the call actually does nothing, I resume this is where the Collection should send data to the server, but no such call is made.