routeParams are {!Object<string, string>}

Calling Object.keys on null is a TypeError. And the mapping should be string -> string.

Closes #10896
This commit is contained in:
Wes Alvaro
2015-01-28 10:29:56 -08:00
committed by Peter Bacon Darwin
parent 27bf2ce40c
commit 400fbbf1d6
+1 -1
View File
@@ -477,7 +477,7 @@ function $RouteProvider() {
* definitions will be interpolated into the location's path, while
* remaining properties will be treated as query params.
*
* @param {Object} newParams mapping of URL parameter names to values
* @param {!Object<string, string>} newParams mapping of URL parameter names to values
*/
updateParams: function(newParams) {
if (this.current && this.current.$$route) {