Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the plugin easier to use together with other plugins. #12

Merged
merged 15 commits into from
Mar 15, 2012

Conversation

dwt
Copy link
Contributor

@dwt dwt commented Sep 22, 2011

Add another reference to sync method so it is easier to use in conjunction with other backbone plugins which might also override Backbone.sync.

dwt added 7 commits September 22, 2011 10:07
…ction with other backbone plugins which might also override Backbone.sync.
The reason is that the storage keeps a cache of keys in local storage. If something is removed from the localStorage but not from that cache it would create a ghost entry.
@dwt
Copy link
Contributor Author

dwt commented Oct 4, 2011

I've since reworked the test suite and fixed two bugs. So hows it, would you pull from me here?

@jeromegn
Copy link
Owner

Would love to pull this. It's become stale since I pulled a few requests in. Could you fix it?

@dwt
Copy link
Contributor Author

dwt commented Jan 26, 2012

That should fix it.

Some remarks: I tried to stay away from defining global objects or extending objects that I don't own more than necessary (i.e. I would prefer Backbone.LocalStorage.sync instead of Backbone.localSync). That way it is much clearer where the function comes from when examining things in the debugger.

@dwt
Copy link
Contributor Author

dwt commented Feb 3, 2012

Hey, how is it, can you merge it now? I would hate to have this sit for another month and then to rework the thing again to make it fit your code.

1 similar comment
@dwt
Copy link
Contributor Author

dwt commented Mar 14, 2012

Hey, how is it, can you merge it now? I would hate to have this sit for another month and then to rework the thing again to make it fit your code.

@elf-pavlik
Copy link

@jeromegn do you plan to merge this one?

jeromegn added a commit that referenced this pull request Mar 15, 2012
Make the plugin easier to use together with other plugins.
@jeromegn jeromegn merged commit c855437 into jeromegn:master Mar 15, 2012
@jeromegn
Copy link
Owner

I was reluctant because of the change in API, but I think the changes are right.

Now let's hope people read the docs and don't just copy the Todos example app's code.

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

Successfully merging this pull request may close these issues.

4 participants