Comparing version 1.9.8 to 2.0.0
@@ -85,13 +85,12 @@ 'use strict' | ||
if (_.isPlainObject( source ) ) { | ||
if (this.options.typed && source._type ) | ||
object[ key ] = source.value || source.defaultValue || source.defaultvalue | ||
var object = { } | ||
var index = -1, props = Object.keys( source ), length = props.length | ||
else { | ||
var object = { } | ||
var index = -1, props = Object.keys( source ), length = props.length | ||
while (++index < length) { | ||
var key = props[index] | ||
while (++index < length) { | ||
var key = props[index] | ||
if (this.options.typed && source[key]._type ) | ||
object[ key ] = source.value || source.defaultValue || source.defaultvalue | ||
else | ||
object[ key ] = self.cloneObject( source[key] ) | ||
} | ||
} | ||
@@ -98,0 +97,0 @@ |
{ | ||
"name": "assign.js", | ||
"version": "1.9.8", | ||
"version": "2.0.0", | ||
"description": "Tiny libary to assign objects", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
13051
314