When saving, passed object gets the 'key' value removed #59

Closed
wootwoot1234 opened this Issue Sep 3, 2011 · 0 comments

Comments

Projects
None yet
2 participants

I noticed that key is removed when saving if a callback function isn't supplied.

With this code, after save the variable data no longer has the key value.
var data = {key: "test", color: '#0'};
db.save(data); // Notice that the callback is missing.
// data == {color: '#0'}

With this code, after save the variable data has the key value.
var data = {key: "test", color: '#0'};
db.save(data, function(obj) {}); // Notice that there is a callback this time.
// data == {key: "test", color: '#0'};

I'm using:
brianleroux-lawnchair-0.6.3-0-g4ef3b28 with the dom adapter in chrome 14.0.835.126 beta-m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment