File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/javascript/binary/base Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -485,9 +485,8 @@ URL.prototype = {
485
485
return ;
486
486
} ,
487
487
path_matches : function ( url ) {
488
- //pathname is /d/page.cgi. Eliminate /d/ and /c/ from both urls.
489
- var this_pathname = this . location . pathname . replace ( / \/ [ d | c ] \/ / g, '' ) ;
490
- var url_pathname = page . url . location . pathname . replace ( / \/ [ d | c ] \/ / g, '' ) ;
488
+ var this_pathname = this . location . pathname ,
489
+ url_pathname = url . location . pathname ;
491
490
return ( this_pathname == url_pathname || '/' + this_pathname == url_pathname ) ;
492
491
} ,
493
492
params_hash_to_string : function ( params ) {
@@ -501,7 +500,7 @@ URL.prototype = {
501
500
var param_count = this_params . length ;
502
501
var match_count = 0 ;
503
502
while ( param_count -- ) {
504
- if ( page . url . param ( this_params [ param_count ] [ 0 ] ) == this_params [ param_count ] [ 1 ] ) {
503
+ if ( url . param ( this_params [ param_count ] [ 0 ] ) == this_params [ param_count ] [ 1 ] ) {
505
504
match_count ++ ;
506
505
}
507
506
}
You can’t perform that action at this time.
0 commit comments