Summary:
The function should have optional arguments, but not nullable types.
Closes https://github.com/facebook/react-native/pull/7580

Differential Revision: D3304994

Pulled By: davidaurelio

fbshipit-source-id: 9918817429126ea16dd3076b61a3493c3a3a8388
This commit is contained in:
Naman Goel 2016-05-16 07:47:56 -07:00 коммит произвёл Facebook Github Bot 4
Родитель f13322c820
Коммит 1673e00e2b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -117,7 +117,7 @@ class RouteStack {
return this._routeNodes.findIndex(finder, this);
}
slice(begin: ?number, end: ?number): RouteStack {
slice(begin?: number, end?: number): RouteStack {
var routeNodes = this._routeNodes.slice(begin, end);
var index = Math.min(this._index, routeNodes.size - 1);
return this._update(index, routeNodes);