refactor: remove requestAnimationFrame from polyfills and platforms (#10528)

This commit is contained in:
Marc Laval
2016-08-31 04:58:22 +02:00
committed by Victor Berchet
parent 24e046fd6a
commit 6e40ef0f6d
5 changed files with 0 additions and 39 deletions

View File

@ -397,10 +397,6 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
getComputedStyle(element: any /** TODO #9100 */): any { return getComputedStyle(element); }
// TODO(tbosch): move this into a separate environment class once we have it
setGlobalVar(path: string, value: any) { setValueOnPath(global, path, value); }
requestAnimationFrame(callback: any /** TODO #9100 */): number {
return window.requestAnimationFrame(callback);
}
cancelAnimationFrame(id: number) { window.cancelAnimationFrame(id); }
supportsWebAnimation(): boolean { return isFunction((<any>Element).prototype['animate']); }
performanceNow(): number {
// performance.now() is not available in all browsers, see