refactor: remove facade/browser (#14837)

This commit is contained in:
Miško Hevery
2017-03-01 10:54:24 -08:00
committed by Chuck Jazdzewski
parent 928c5657c8
commit 4fe0b90948
2 changed files with 7 additions and 32 deletions
-25
View File
@@ -1,25 +0,0 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* JS version of browser APIs. This library can only run in the browser.
*/
const win = typeof window !== 'undefined' && window || <any>{};
export {win as window};
export const document = win.document;
export const location = win.location;
export const gc = win['gc'] ? () => win['gc']() : (): any => null;
export const performance = win['performance'] ? win['performance'] : null;
export const Event = win['Event'];
export const MouseEvent = win['MouseEvent'];
export const KeyboardEvent = win['KeyboardEvent'];
export const EventTarget = win['EventTarget'];
export const History = win['History'];
export const Location = win['Location'];
export const EventListener = win['EventListener'];