File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -345,17 +345,16 @@ LocationHashbangInHtml5Url.prototype =
345
345
* Change path, search and hash, when called with parameter and return `$location`.
346
346
*
347
347
* @param {string= } url New url without base prefix (e.g. `/path?a=b#hash`)
348
- * @param {string= } replace The path that will be changed
349
348
* @return {string } url
350
349
*/
351
- url : function ( url , replace ) {
350
+ url : function ( url ) {
352
351
if ( isUndefined ( url ) )
353
352
return this . $$url ;
354
353
355
354
var match = PATH_MATCH . exec ( url ) ;
356
355
if ( match [ 1 ] ) this . path ( decodeURIComponent ( match [ 1 ] ) ) ;
357
356
if ( match [ 2 ] || match [ 1 ] ) this . search ( match [ 3 ] || '' ) ;
358
- this . hash ( match [ 5 ] || '' , replace ) ;
357
+ this . hash ( match [ 5 ] || '' ) ;
359
358
360
359
return this ;
361
360
} ,
You can’t perform that action at this time.
0 commit comments