Closed ghost closed 11 years ago
@ask11, I confirm that when first fetching, the GET request is fired probably, but the collection is empty in memory, and also some dummy empty models are created in localStorage.
I can't get the whole plugin to work for me because of that. Thank You.
Backbone 1.0 didn't work for me, too – I'm using 0.9.10 in my app because of that. Although, I never tried to investigate what caused the bug.
I noticed this is caused due to a change on Backbone's fetch, save, create and destroy function signature on version 1.0.0 - which now only receive the response as parameter. I took a sneak peek on the code and noticed this should be fixed for 0.5.0, am I right?
I assumed this wasn't working with 0.5.0, but it's actually an old version of the compiled JS that made it into the 0.5.0 tag. Could @ask11 update this for us?
Done in #51
When
fetch()
method runs, Backbone.Collection performs query to the RESTful service successfully, but eventually collection is empty (contains single empty model). Also following error occurs:When I am trying run
create()
method of the collection, following errors occur:Normally my app uses URL
https://api.mongolab.com/api/1/databases/billing-app/collections/invoices
instead ofhttps://api.mongolab.com/api/1/databases/billing-app/collections/invoices/null
to perform CREATE operation.I am using Backbone 1.0 and MongoLab.com as a RESTful service,
_id
is replaced toid
. Here is my source code: