Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(angularCopy): out putValue function from copy #12044

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ function copy(source, destination, stackSource, stackDest) {
}
}
return destination;

function putValue(key, val, destination, stackSource, stackDest) {
}
function putValue(key, val, destination, stackSource, stackDest) {
// No context allocation, trivial outer scope, easily inlined
var result = copy(val, null, stackSource, stackDest);
if (isObject(val)) {
Expand All @@ -879,8 +879,6 @@ function copy(source, destination, stackSource, stackDest) {
}
destination[key] = result;
}
}

/**
* Creates a shallow copy of an object, an array or a primitive.
*
Expand Down