This is part of ongoing work to make core platform-independent.
BREAKING CHANGE
All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
18 lines
607 B
TypeScript
18 lines
607 B
TypeScript
/**
|
|
* JS version of browser APIs. This library can only run in the browser.
|
|
*/
|
|
var win = window;
|
|
|
|
export {win as window};
|
|
export var document = window.document;
|
|
export var location = window.location;
|
|
export var gc = window['gc'] ? () => window['gc']() : () => null;
|
|
export var performance = window['performance'] ? window['performance'] : null;
|
|
export const Event = Event;
|
|
export const MouseEvent = MouseEvent;
|
|
export const KeyboardEvent = KeyboardEvent;
|
|
export const EventTarget = EventTarget;
|
|
export const History = History;
|
|
export const Location = Location;
|
|
export const EventListener = EventListener;
|