Permalink
Browse files

Merge branch 'master' of github.com:LearnBoost/mongoose

  • Loading branch information...
2 parents ccd86c6 + 35cde07 commit 99a80504c76172543464e4a944ba782d8891efe3 @aheckmann aheckmann committed Mar 27, 2011
Showing with 9 additions and 4 deletions.
  1. +5 −0 History.md
  2. +1 −1 lib/mongoose/index.js
  3. +2 −2 lib/mongoose/model.js
  4. +1 −1 package.json
View
@@ -1,4 +1,9 @@
+1.1.13 / 2011-03-26
+===================
+
+ * Fixed setting values as `undefined`.
+
1.1.12 / 2011-03-26
===================
View
@@ -281,7 +281,7 @@ exports.Connection = Connection;
* @param version
*/
-exports.version = '1.1.12';
+exports.version = '1.1.13';
/**
* Export Mongoose constructor
View
@@ -103,8 +103,8 @@ Model.prototype.save = function (fn) {
, schema = data.schema
, atomics, val, obj;
- if (type === null) {
- delta[data.path] = null;
+ if (type === null || type === undefined) {
+ delta[data.path] = type;
} else if (type._path && type.doAtomics) {
// a MongooseArray or MongooseNumber
atomics = type._atomics;
View
@@ -1,7 +1,7 @@
{
"name": "mongoose"
, "description": "Mongoose MongoDB ORM"
- , "version": "1.1.12"
+ , "version": "1.1.13"
, "author": "Guillermo Rauch <guillermo@learnboost.com>"
, "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"]
, "dependencies": {}

0 comments on commit 99a8050

Please sign in to comment.