Skip to content

Commit

Permalink
fix(animations): ensure animation detection doesn't rely on the body …
Browse files Browse the repository at this point in the history
…node

Closes angular#10230
Closes angular#10191
  • Loading branch information
matsko committed Jul 25, 2016
1 parent 2b63330 commit ce02e43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
}
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
supportsWebAnimation(): boolean {
return isFunction((document as any /** TODO #9100 */).body['animate']);
return isFunction((<any>Element).prototype['animate']);
}
performanceNow(): number {
// performance.now() is not available in all browsers, see
Expand Down

0 comments on commit ce02e43

Please sign in to comment.