Closed FrankFang closed 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
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.
Feel free to submit a test and a fix :)
Ok, closing now. Please re-open with a test and a fix :)
Then review the model in the IndexedDB via DevTools, you will see the id is
1d4dfa05-78e9-f817-34ad-716f4b5e38e0
So