fix(animations): ensure animation detection doesn't rely on the body node

Closes #10230
Closes #10191
Closes #10273
This commit is contained in:
Matias Niemelä 2016-07-25 11:24:31 -07:00
parent b42411ba1f
commit 0d1bf8148b
1 changed files with 1 additions and 3 deletions

View File

@ -398,9 +398,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
return window.requestAnimationFrame(callback); return window.requestAnimationFrame(callback);
} }
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); } cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
supportsWebAnimation(): boolean { supportsWebAnimation(): boolean { return isFunction((<any>Element).prototype['animate']); }
return isFunction((document as any /** TODO #9100 */).body['animate']);
}
performanceNow(): number { performanceNow(): number {
// performance.now() is not available in all browsers, see // performance.now() is not available in all browsers, see
// http://caniuse.com/#search=performance.now // http://caniuse.com/#search=performance.now