Skip to content

Commit f48172c

Browse files
committed
updated build scripts
1 parent ac66dbe commit f48172c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build/deepcopy.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ return /******/ (function(modules) { // webpackBootstrap
159159
var resultValue = copyValue(target);
160160

161161
if (resultValue !== null) {
162-
return copyValue(target);
162+
return resultValue;
163163
}
164164

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

364+
resultCopy = void 0;
365+
result = void 0;
366+
ref = void 0;
367+
364368
if (index === -1) {
365369
resultCopy = (0, _copy.copy)(value, customizer);
366370
result = resultCopy !== null ? resultCopy : value;
367371

368372
if (value !== null && /^(?:function|object)$/.test(typeof value)) {
369373
visited.push(value);
370374
reference.push(result);
371-
} else {
372-
ref = result;
373375
}
374376
} else {
375377
// circular reference

build/deepcopy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)