2016-06-23 09:47:54 -07:00
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
*/
|
|
|
|
|
|
2015-04-01 10:45:56 -07:00
|
|
|
/**
|
|
|
|
|
* JS version of browser APIs. This library can only run in the browser.
|
|
|
|
|
*/
|
2016-09-18 15:39:26 -07:00
|
|
|
const win = typeof window !== 'undefined' && window || <any>{};
|
2015-04-01 10:45:56 -07:00
|
|
|
|
|
|
|
|
export {win as window};
|
2016-09-18 15:39:26 -07:00
|
|
|
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;
|
2016-04-28 17:50:03 -07:00
|
|
|
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'];
|