Skip to content

Commit

Permalink
fixup! fix(ivy): avoid destroy renderer method invocation for child v…
Browse files Browse the repository at this point in the history
…iews
  • Loading branch information
AndrewKushnir committed Dec 11, 2018
1 parent 1860170 commit b73efa2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/test/render3/render_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,12 @@ class MockRenderer implements ProceduralRenderer3 {
parentNode(node: RNode): RElement|null { return node.parentNode as RElement; }
nextSibling(node: RNode): RNode|null { return node.nextSibling; }
setAttribute(el: RElement, name: string, value: string, namespace?: string|null): void {
el.setAttribute(name, value);
// set all synthetic attributes as properties
if (name[0] === '@') {
this.setProperty(el, name, value);
} else {
el.setAttribute(name, value);
}
}
removeAttribute(el: RElement, name: string, namespace?: string|null): void {}
addClass(el: RElement, name: string): void {}
Expand Down

0 comments on commit b73efa2

Please sign in to comment.