js/comm/comm/values/values.js in rsence-2.0.0.0.pre vs js/comm/comm/values/values.js in rsence-2.0.0.pre

- old
+ new

@@ -362,37 +362,27 @@ * * = Returns * A copy of the object. * **/ - clone: function( _obj, _shallow ){ + clone: function( _obj ){ if(_obj === null || _obj === undefined){ console.log('null or undefined obj:',_obj); return _obj; } var _item, _cloned; if( _obj instanceof Array ){ _cloned = []; for( _item = 0; _item < _obj.length; _item ++ ){ - if(_shallow){ - _cloned[ _item ] = _obj[ _item ]; - } - else { - _cloned[ _item ] = this.clone( _obj[ _item ] ); - } + _cloned[ _item ] = this.clone( _obj[ _item ] ); } return _cloned; } else if( _obj instanceof Object ){ _cloned = {}; for( _item in _obj ){ - if(_shallow){ - _cloned[ _item ] = _obj[ _item ]; - } - else { - _cloned[ _item ] = this.clone( _obj[ _item ] ); - } + _cloned[ _item ] = this.clone( _obj[ _item ] ); } return _cloned; } else { return _obj;