fix(animations): ensure animation detection doesn't rely on the body node
Closes #10230 Closes #10191 Closes #10273
This commit is contained in:
parent
b42411ba1f
commit
0d1bf8148b
|
@ -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((<any>Element).prototype['animate']); }
|
||||
performanceNow(): number {
|
||||
// performance.now() is not available in all browsers, see
|
||||
// http://caniuse.com/#search=performance.now
|
||||
|
|
Loading…
Reference in New Issue