typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 285 forks source link

db(id).update() does not store #10

Closed liuhann closed 12 years ago

liuhann commented 12 years ago

if you store db using db().store(),

the update method won't work (auto synchronize to localStorage).

The older version works well

typicaljoe commented 12 years ago

I was not able to duplicate this issue. Can you provide a code example?

liuhann commented 12 years ago

Hi so long time.

I am using version 2.3.8 now and it works well.

Perhaps the version I report the bug has the problem. My code is like this

groupdb = new TAFFY(); groupdb.store("moneygroup"); groupdb("IDXXX").update();

and then refresh the page.

thanks

2012/6/16 typicaljoe < reply@reply.github.com

I was not able to duplicate this issue. Can you provide a code example?


Reply to this email directly or view it on GitHub: https://github.com/typicaljoe/taffydb/issues/10#issuecomment-6367672

typicaljoe commented 12 years ago

Do you pass an object into .update and are you still having the issue with the latest build?

liuhann commented 12 years ago

Oh sure. It is OK when I replace the taffy.js

And I think with the stringify method, I no longer need store()

Thanks for your answer.

2012/6/19 typicaljoe < reply@reply.github.com

Do you pass an object into .update and are you still having the issue with the latest build?


Reply to this email directly or view it on GitHub: https://github.com/typicaljoe/taffydb/issues/10#issuecomment-6403400