We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d34824 commit 97d4d63Copy full SHA for 97d4d63
src/Prototype/Conceptual/index.ts
@@ -37,10 +37,7 @@ class Prototype {
37
// вложенный объект должен указывать на клонированный объект, а не на
38
// исходный объект. Для данного случая хорошо подойдёт оператор
39
// расширения (spread).
40
- clone.circularReference = {
41
- ...this.circularReference,
42
- prototype: { ...this },
43
- };
+ clone.circularReference = new ComponentWithBackReference(clone);
44
45
return clone;
46
}
0 commit comments