Permalink
Browse files

Fix mixin

my fault, sorry
  • Loading branch information...
1 parent dd564db commit e11bbffd25fe60538ca0f84fbf270db6231a7415 @norlin norlin committed Sep 5, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/couchdb.js
  2. +1 −1 package.json
View
@@ -31,7 +31,7 @@ function mixin() {
}
// mixin process itself if only one argument is passed
- if ( length == i ) {
+ if ( length === i ) {
target = GLOBAL;
--i;
}
@@ -65,8 +65,10 @@ function mixin() {
for ( ; i < length; i++ ) {
// Only deal with non-null/undefined values
- if ( (source = arguments[i]) !== null ) {
+ source = arguments[i];
+ if ( source !== null && source !== undefined ) {
// Extend the base object
+ //console.log(util.inspect(source));
Object.getOwnPropertyNames(source).forEach(makeMixin);
}
}
View
@@ -1,6 +1,6 @@
{
"name": "felix-couchdb",
- "version": "1.0.4",
+ "version": "1.0.5",
"author": "Alexey Makarov <alexey@norlin.ru>",
"description": "A CouchDB module following node.js idioms, created by Felix Geisendörfer <felix@debuggable.com> and fixed a little by me",
"keywords": [

0 comments on commit e11bbff

Please sign in to comment.