Permalink
Browse files

Don't drop properties in updateProperties call

  • Loading branch information...
1 parent 237b3fe commit 6b3facb4f9409a2826469aa452dcd1952535f54a mde committed Sep 3, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/index.js
View
@@ -507,8 +507,11 @@ utils.mixin(model, new (function () {
return item;
};
- this.updateItem = function (item, params) {
- item = this.validateAndUpdateFromParams(item, params);
+ this.updateItem = function (item, params, opts) {
+ var data = {};
+ utils.mixin(data, item);
+ utils.mixin(data, params);
+ this.validateAndUpdateFromParams(item, data, opts);
// After-update hook
if (typeof item.afterUpdate === 'function') {

0 comments on commit 6b3facb

Please sign in to comment.