Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
wootwoot1234 opened this Issue · 0 comments

2 participants

@wootwoot1234

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: '#000000'};
db.save(data); // Notice that the callback is missing.
// data == {color: '#000000'}

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

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

@niallsmart niallsmart referenced this issue from a commit in niallsmart/lawnchair
Niall Smart fix issue #59 d04a031
@niallsmart niallsmart referenced this issue from a commit in niallsmart/lawnchair
Niall Smart fix issue #59 in window-name adapter ec66be5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.