From 0d1bf8148bedbb5b2455f5cd0efd8dc0e17e01bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matias=20Niemel=C3=A4?= Date: Mon, 25 Jul 2016 11:24:31 -0700 Subject: [PATCH] fix(animations): ensure animation detection doesn't rely on the body node Closes #10230 Closes #10191 Closes #10273 --- .../@angular/platform-browser/src/browser/browser_adapter.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/@angular/platform-browser/src/browser/browser_adapter.ts b/modules/@angular/platform-browser/src/browser/browser_adapter.ts index 4aaa307555..ad8a3f46b2 100644 --- a/modules/@angular/platform-browser/src/browser/browser_adapter.ts +++ b/modules/@angular/platform-browser/src/browser/browser_adapter.ts @@ -398,9 +398,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter { return window.requestAnimationFrame(callback); } cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); } - supportsWebAnimation(): boolean { - return isFunction((document as any /** TODO #9100 */).body['animate']); - } + supportsWebAnimation(): boolean { return isFunction((Element).prototype['animate']); } performanceNow(): number { // performance.now() is not available in all browsers, see // http://caniuse.com/#search=performance.now