Skip to content

Commit

Permalink
Updated lib/blocks/core.js to version in astoilkov/jscore#3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joscha Rohmann committed May 24, 2016
1 parent bb5b85c commit 4adedb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/blocks/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* Copies properties from all provided objects into the first object parameter
*
* @memberof blocks
* @param {boolean} [deepCopy] - If true, the merge becomes recursive (aka. deep copy)
* @param {Object} obj
* @param {...Object} objects
* @returns {Object}
Expand Down Expand Up @@ -556,6 +557,10 @@
var clone;
var key;

if (blocks.isFunction(value.clone)) {
return value.clone(deepClone);
}

if (type == 'array') {
return value.slice(0);
} else if (type == 'object') {
Expand Down

0 comments on commit 4adedb5

Please sign in to comment.