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

Commit 99d95f1

Browse files
thorn0jeffbcross
authored andcommitted
fix($location): remove an unused parameter of $location.url
1 parent 48e66cf commit 99d95f1

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
@@ -345,17 +345,16 @@ LocationHashbangInHtml5Url.prototype =
345345
* Change path, search and hash, when called with parameter and return `$location`.
346346
*
347347
* @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`)
348-
* @param {string=} replace The path that will be changed
349348
* @return {string} url
350349
*/
351-
url: function(url, replace) {
350+
url: function(url) {
352351
if (isUndefined(url))
353352
return this.$$url;
354353

355354
var match = PATH_MATCH.exec(url);
356355
if (match[1]) this.path(decodeURIComponent(match[1]));
357356
if (match[2] || match[1]) this.search(match[3] || '');
358-
this.hash(match[5] || '', replace);
357+
this.hash(match[5] || '');
359358

360359
return this;
361360
},

0 commit comments

Comments
 (0)