Permalink
Browse files

When mixing and enhancing objects don't attempt to assign keys to nul…

…l values. Should probably add more checks for undefined, etc.`
  • Loading branch information...
1 parent c292904 commit f113147d326cc8e50f5e01b73f47fecf27d4babd @larzconwell larzconwell committed Oct 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/core.js
View
@@ -37,6 +37,9 @@ var core = new (function () {
}
// If it's not a merge-copy, just set and forget
else {
+ if (targ === null) {
+ continue;
+ }
targ[p] = src[p];
}
}

0 comments on commit f113147

Please sign in to comment.