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

PR Close #32578
This commit is contained in:
Pawel Kozlowski 2019-09-10 13:34:11 +02:00 committed by Matias Niemelä
parent 25d90dabbe
commit 72807101ed
1 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ class DefaultDomRenderer2 implements Renderer2 {
}
setProperty(el: any, name: string, value: any): void {
checkNoSyntheticProp(name, 'property');
ngDevMode && checkNoSyntheticProp(name, 'property');
el[name] = value;
}
@ -229,7 +229,7 @@ class DefaultDomRenderer2 implements Renderer2 {
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));