reverting an old change -- _.extend should absolutely copy undefined values.

This commit is contained in:
Jeremy Ashkenas
2012-01-23 15:48:35 -05:00
parent dd09162b8c
commit 99c17c4a0d
2 changed files with 2 additions and 2 deletions

View File

@@ -635,7 +635,7 @@
_.extend = function(obj) {
each(slice.call(arguments, 1), function(source) {
for (var prop in source) {
if (source[prop] !== void 0) obj[prop] = source[prop];
obj[prop] = source[prop];
}
});
return obj;