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

Cannot add to collections that have not been successfully fetched #6

Open
jamesarosen opened this issue Sep 2, 2011 · 0 comments
Open

Comments

@jamesarosen
Copy link
Collaborator

When a ResourceCollection is created, its content is undefined (unless you pass in an Array for the content, in which case it's a non-fetchable collection), which means that attempts to pushObject will fail silently. It's fine to say that you can't add items to the collection until it's been fetched. If the fetch fails, however, content is still undefined. I think the proper solution is to add a fail callback to the fetch deferred object that creates an empty content array.

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

No branches or pull requests

1 participant