fix(router): export ROUTER_LINK_DSL_PROVIDER and hide MockPopStateEvent

This commit is contained in:
Igor Minar
2015-12-15 09:42:27 -08:00
parent 00822c3415
commit fc75220d63
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ export class MockLocationStrategy extends LocationStrategy {
simulatePopState(url: string): void {
this.internalPath = url;
ObservableWrapper.callEmit(this._subject, new MockPopStateEvent(this.path()));
ObservableWrapper.callEmit(this._subject, new _MockPopStateEvent(this.path()));
}
path(): string { return this.internalPath; }
@ -66,7 +66,7 @@ export class MockLocationStrategy extends LocationStrategy {
forward(): void { throw 'not implemented'; }
}
class MockPopStateEvent {
class _MockPopStateEvent {
pop: boolean = true;
type: string = 'popstate';
constructor(public newUrl: string) {}