Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c65796d

Browse files
thorn0jeffbcross
authored andcommitted
fix($location): remove an unused parameter of $location.url
1 parent 34b43ea commit c65796d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ng/location.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,16 @@ LocationHashbangInHtml5Url.prototype =
320320
* Change path, search and hash, when called with parameter and return `$location`.
321321
*
322322
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
323-
* @param {string=} replace The path that will be changed
324323
* @return {string} url
325324
*/
326-
url: function(url, replace) {
325+
url: function(url) {
327326
if (isUndefined(url))
328327
return this.$$url;
329328

330329
var match = PATH_MATCH.exec(url);
331330
if (match[1]) this.path(decodeURIComponent(match[1]));
332331
if (match[2] || match[1]) this.search(match[3] || '');
333-
this.hash(match[5] || '', replace);
332+
this.hash(match[5] || '');
334333

335334
return this;
336335
},

0 commit comments

Comments
 (0)