Skip to content

Commit

Permalink
[fix] assignDeep
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergiy Korzh committed Feb 7, 2024
1 parent 4c0e786 commit 689d87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easydata.js/packs/core/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export namespace utils {
if (source.hasOwnProperty(key)) {
let sourceVal = source[key];

//we don't make a deep copy of HTML elements and any other property makred as a 'reference' (ends with 'Ref')
//we don't make a deep copy of HTML elements and any other property marked as a 'reference' (ends with 'Ref')
if (sourceVal !== null && typeof sourceVal === 'object'
&& key.endsWith('Ref') && !(sourceVal instanceof HTMLElement))
&& !key.endsWith('Ref') && !(sourceVal instanceof HTMLElement))
{
if (hashSet.has(sourceVal)) {
target[key] = hashSet.get(sourceVal);
Expand Down

0 comments on commit 689d87b

Please sign in to comment.