We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef633e commit 3c4e40dCopy full SHA for 3c4e40d
ui/jquery.ui.tabs.js
@@ -13,17 +13,19 @@
13
*/
14
(function( $, undefined ) {
15
16
-var tabId = 0;
+var tabId = 0,
17
+ rhash = /#.*$/;
18
+
19
function getNextTabId() {
20
return ++tabId;
21
}
22
23
var isLocal = function( anchor ) {
- var rhash = /#.*$/;
24
// clone the node to work around IE 6 not normalizing the href property
25
// if it's manually set, i.e., a.href = "#foo" kills the normalization
26
anchor = anchor.cloneNode( false );
- return anchor.hash.length > 1 && anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
27
+ return anchor.hash.length > 1 &&
28
+ anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
29
};
30
31
$.widget( "ui.tabs", {
0 commit comments