diff --git a/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js b/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js index 3290ba462..3600bd6ef 100644 --- a/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js +++ b/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js @@ -1,5 +1,10 @@ /** - * Copyright 2004-present Facebook. All Rights Reserved. + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule NavigationRouteStack * @flow @@ -135,7 +140,7 @@ class RouteStack { invariant(this._routeNodes.indexOf(route) === -1, 'route must be unique'); // When pushing, removes the rest of the routes past the current index. - var routeNodes = this._routeNodes.withMutations((list: List) => { + var routeNodes = this._routeNodes.withMutations((list: List) => { list.slice(0, this._index + 1).push(new RouteNode(route)); }); @@ -232,7 +237,7 @@ class RouteStack { return new Set(items); } - _update(index: number, routeNodes: List): RouteStack { + _update(index: number, routeNodes: List): RouteStack { if (this._index === index && this._routeNodes === routeNodes) { return this; }