Skip to content
Permalink
Browse files

perf(ivy): check for animation synthetic props in dev mode only (#32578)

PR Close #32578
  • Loading branch information...
pkozlowski-opensource authored and matsko committed Sep 10, 2019
1 parent 25d90da commit 72807101ed1ec1eb3a61fad5eedc329ed0fd8339
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/platform-browser/src/dom/dom_renderer.ts
@@ -221,15 +221,15 @@ class DefaultDomRenderer2 implements Renderer2 {
}

setProperty(el: any, name: string, value: any): void {
checkNoSyntheticProp(name, 'property');
ngDevMode && checkNoSyntheticProp(name, 'property');
el[name] = value;
}

setValue(node: any, value: string): void { node.nodeValue = value; }

listen(target: 'window'|'document'|'body'|any, event: string, callback: (event: any) => boolean):
() => void {
checkNoSyntheticProp(event, 'listener');
ngDevMode && checkNoSyntheticProp(event, 'listener');
if (typeof target === 'string') {
return <() => void>this.eventManager.addGlobalEventListener(
target, event, decoratePreventDefault(callback));

0 comments on commit 7280710

Please sign in to comment.
You can’t perform that action at this time.