Skip to content

Commit

Permalink
perf(ivy): check for animation synthetic props in dev mode only (#32578)
Browse files Browse the repository at this point in the history
PR Close #32578
  • Loading branch information
pkozlowski-opensource authored and matsko committed Sep 10, 2019
1 parent 25d90da commit 7280710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/platform-browser/src/dom/dom_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7280710

Please sign in to comment.