Skip to content

Commit dbd6847

Browse files
committed
whitespace and comment fixes
1 parent 49b1b78 commit dbd6847

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

js/jquery.mobile.navigation.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
path.origin = path.get( location.protocol + '//' + location.host + location.pathname );
4141
},
4242

43-
//prefix a relative url with the current path
44-
// TODO rename to reflect conditional functionality
43+
// prefix a relative url with the current path
44+
// TODO force old relative deeplinks into new absolute path
4545
makeAbsolute: function( url ){
4646
var isHashPath = path.isPath( location.hash );
4747

@@ -69,9 +69,8 @@
6969

7070
//return a url path with the window's location protocol/hostname/pathname removed
7171
clean: function( url ){
72-
// Replace the protocol, host, and pathname only once at the beginning of the url to avoid
72+
// Replace the protocol host only once at the beginning of the url to avoid
7373
// problems when it's included as a part of a param
74-
// Also, since all urls are absolute in IE, we need to remove the pathname as well.
7574
var leadingUrlRootRegex = new RegExp("^" + location.protocol + "//" + location.host );
7675
return url.replace(leadingUrlRootRegex, "");
7776
},
@@ -495,10 +494,10 @@
495494

496495
pageContainerClasses = [];
497496
}
498-
497+
499498
//clear page loader
500499
$.mobile.pageLoading( true );
501-
500+
502501
if(transition && (transition !== 'none')){
503502
if( $.inArray(transition, perspectiveTransitions) >= 0 ){
504503
addContainerClass('ui-mobile-viewport-perspective');

0 commit comments

Comments
 (0)