Raymond Feng 2014-08-15 23:30:23 -07:00
parent e23c2f2763
commit 7f9108c6d2
1 changed files with 1 additions and 0 deletions

View File

@ -1155,6 +1155,7 @@ DataAccessObject.prototype.updateAttributes = function updateAttributes(data, cb
inst[key] = data[key];
typedData[key] = inst[key];
if (typeof typedData[key] === 'object'
&& typedData[key] !== null
&& typeof typedData[key].toObject === 'function') {
typedData[key] = typedData[key].toObject();
}