diff options
| author | Misko Hevery | 2012-03-16 12:55:54 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-19 11:41:23 -0700 |
| commit | d4ae7988dad88af608db9cf34992c9c748eda6aa (patch) | |
| tree | 162afef88669329611d0b0d9e7b6929537c803b8 /src/service/location.js | |
| parent | 5ac14f633a69f49973b5512780c6ec7752405967 (diff) | |
| download | angular.js-d4ae7988dad88af608db9cf34992c9c748eda6aa.tar.bz2 | |
chore(parseInt): cleanup parseInt() for our int()
Diffstat (limited to 'src/service/location.js')
| -rw-r--r-- | src/service/location.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/location.js b/src/service/location.js index a7ff103b..1accb993 100644 --- a/src/service/location.js +++ b/src/service/location.js @@ -30,7 +30,7 @@ function matchUrl(url, obj) { match = { protocol: match[1], host: match[3], - port: parseInt(match[5], 10) || DEFAULT_PORTS[match[1]] || null, + port: int(match[5]) || DEFAULT_PORTS[match[1]] || null, path: match[6] || '/', search: match[8], hash: match[10] |
