Skip to content

Commit

Permalink
updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaplus1 committed Jun 13, 2016
1 parent ac66dbe commit f48172c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions build/deepcopy.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ return /******/ (function(modules) { // webpackBootstrap
var resultValue = copyValue(target);

if (resultValue !== null) {
return copyValue(target);
return resultValue;
}

return copyCollection(target, customizer);
Expand Down Expand Up @@ -361,15 +361,17 @@ return /******/ (function(modules) { // webpackBootstrap
value = target[key];
index = (0, _polyfill.indexOf)(visited, value);

resultCopy = void 0;
result = void 0;
ref = void 0;

if (index === -1) {
resultCopy = (0, _copy.copy)(value, customizer);
result = resultCopy !== null ? resultCopy : value;

if (value !== null && /^(?:function|object)$/.test(typeof value)) {
visited.push(value);
reference.push(result);
} else {
ref = result;
}
} else {
// circular reference
Expand Down
2 changes: 1 addition & 1 deletion build/deepcopy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f48172c

Please sign in to comment.