diff options
| author | Igor Minar | 2013-08-12 10:56:36 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-12 14:09:08 -0700 |
| commit | 544d2616b429e5059a1ff117c483102b7495b992 (patch) | |
| tree | c58626aa7b056d67dff3f4c0488eba49fed57ad6 /src/ng/location.js | |
| parent | d4d34aba6efbd98050235f5b264899bb788117df (diff) | |
| download | angular.js-544d2616b429e5059a1ff117c483102b7495b992.tar.bz2 | |
chore($location): drop bugus error
we can never get to this state, so dropping the error
Diffstat (limited to 'src/ng/location.js')
| -rw-r--r-- | src/ng/location.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ng/location.js b/src/ng/location.js index 7b0c6ec0..f4f77c2f 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -161,9 +161,6 @@ function LocationHashbangUrl(appBase, hashPrefix) { */ this.$$parse = function(url) { var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url); - if (!isString(withoutBaseUrl)) { - throw $locationMinErr('istart', 'Invalid url "{0}", does not start with "{1}".', url, appBase); - } var withoutHashUrl = withoutBaseUrl.charAt(0) == '#' ? beginsWith(hashPrefix, withoutBaseUrl) : (this.$$html5) |
