[Navigator] Port navigation APIs from Navigator to NavigationContext

This commit is contained in:
Hedger Wang 2015-07-24 16:50:19 -07:00
parent c8373d2ad6
commit ea5276ed24
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class RouteStack {
);
var routes = this._routes.set(index, route);
return this._update(this._index, routes);
return this._update(index, routes);
}
_update(index: number, routes: List): RouteStack {

View File

@ -201,7 +201,7 @@ describe('NavigationRouteStack:', () => {
expect(stack2).not.toBe(stack1);
expect(stack2.toArray()).toEqual(['x', 'b']);
expect(stack2.index).toBe(1);
expect(stack2.index).toBe(0);
});
it('replaces route at negative index', () => {