superfeedr / indexeddb-backbonejs-adapter

An indexedDB adapter for Backbonejs
http://blog.superfeedr.com/indexeddb-backbonejs-adapter/
MIT License
248 stars 61 forks source link

{id: 0} does not work #54

Closed FrankFang closed 10 years ago

FrankFang commented 10 years ago
var model = new Model ({id:0})
model.save()

Then review the model in the IndexedDB via DevTools, you will see the id is 1d4dfa05-78e9-f817-34ad-716f4b5e38e0

So

var model = new Model({id: 0})
model.fetch() // Gets NOTHING! Because there is no model with an id equaling 0.
julien51 commented 10 years ago

Feel free to submit a test and a fix :)

julien51 commented 10 years ago

Ok, closing now. Please re-open with a test and a fix :)