1602/jugglingdb — pull request #364 by ierceg (2014-01-24 01:36:20+00:00)
Title: Fixed bad update of record in the memory on save()

The invocation of `inst._adapter().save` passes a data object that is immediately discarded so even if the adapter changes the data object during the saving (e.g. sets a new revision) it has no effect in `inst._initProperties(data, false);` as *that* `data` object was never changed (nor could it be as adapter never had access to it).

I fixed this problem by keeping a reference to the adapted data object and then using that object to update `inst`.