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

Investigate a solution for handling silent changes to Backbone Collections #50

Closed
EvHaus opened this issue Apr 24, 2014 · 1 comment
Closed
Assignees
Milestone

Comments

@EvHaus
Copy link
Owner

EvHaus commented Apr 24, 2014

Consider this scenario:

var collection = new Backbone.Collection();
new DobyGrid({data: collection});

// Silently add an item to the collection so that DobyGrid doesn't know about it
collection.add({id: 123}, {silent: true})

// Try to edit the row
collection.get(123).set({name: 'test'});

// DobyGrid will fail in the setItem() method trying to find that item

Not sure what we should do here. Keep the error? Show a warning instead? Simply do nothing silently?

@EvHaus EvHaus added this to the Future milestone Apr 24, 2014
@EvHaus EvHaus self-assigned this Apr 24, 2014
@EvHaus
Copy link
Owner Author

EvHaus commented Aug 14, 2014

Duplicate of #49

@EvHaus EvHaus closed this as completed Aug 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant