Tabs: Whitespace cleanup

This commit is contained in:
Jörn Zaefferer 2012-03-01 13:30:57 +01:00
parent b141d63a17
commit bfadd5c5a2

View File

@ -15,7 +15,7 @@
var tabId = 0, var tabId = 0,
rhash = /#.*$/; rhash = /#.*$/;
function getNextTabId() { function getNextTabId() {
return ++tabId; return ++tabId;
} }
@ -24,7 +24,7 @@ var isLocal = function( anchor ) {
// clone the node to work around IE 6 not normalizing the href property // clone the node to work around IE 6 not normalizing the href property
// if it's manually set, i.e., a.href = "#foo" kills the normalization // if it's manually set, i.e., a.href = "#foo" kills the normalization
anchor = anchor.cloneNode( false ); anchor = anchor.cloneNode( false );
return anchor.hash.length > 1 && return anchor.hash.length > 1 &&
anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" ); anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
}; };