From 544d2616b429e5059a1ff117c483102b7495b992 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 12 Aug 2013 10:56:36 -0700 Subject: chore($location): drop bugus error we can never get to this state, so dropping the error --- src/ng/location.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3