Skip to content

Commit 218b09b

Browse files
author
Oleksandr Dzhychko
committed
refactor(vue-model-api): clean up ReactiveINodeJS
Remove outdated comments and dead code.
1 parent ff9ba79 commit 218b09b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

vue-model-api/src/internal/ReactiveINodeJS.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ export class ReactiveINodeJS implements INodeJS {
148148
index,
149149
concept,
150150
);
151-
return unreacitveNode
152-
? toReactiveINodeJS(unreacitveNode, this.cache)
153-
: unreacitveNode;
151+
return toReactiveINodeJS(unreacitveNode, this.cache);
154152
}
155153

156154
removeChild(child: INodeJS): void {
@@ -182,10 +180,6 @@ export class ReactiveINodeJS implements INodeJS {
182180
}
183181

184182
setReferenceTargetNode(role: string, target: INodeJS | undefined): void {
185-
// Do not call `this.unreactiveNode.setReferenceTargetNode` directly,
186-
// because the target is declared as `INodeJS`, but actuall an `NodeAdapterJS` is expected.
187-
// Just using the reference is cleaner then unwrapping
188-
// then checking for ReactiveINodeJS and eventuall unwrapping it
189183
return this.unreactiveNode.setReferenceTargetNode(
190184
role,
191185
unwrapReactiveINodeJS(target),

0 commit comments

Comments
 (0)