File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
( function ( $ , undefined ) {
15
15
16
- var tabId = 0 ;
16
+ var tabId = 0 ,
17
+ rhash = / # .* $ / ;
18
+
17
19
function getNextTabId ( ) {
18
20
return ++ tabId ;
19
21
}
20
22
21
- var isLocal = ( function ( ) {
22
- var rhash = / # .* $ / ,
23
- currentPage = location . href . replace ( rhash , "" ) ;
24
-
25
- return function ( anchor ) {
26
- // clone the node to work around IE 6 not normalizing the href property
27
- // if it's manually set, i.e., a.href = "#foo" kills the normalization
28
- anchor = anchor . cloneNode ( false ) ;
29
- return anchor . hash . length > 1 &&
30
- anchor . href . replace ( rhash , "" ) === currentPage ;
31
- } ;
32
- } ) ( ) ;
23
+ var isLocal = function ( anchor ) {
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 ) ;
27
+ return anchor . hash . length > 1 &&
28
+ anchor . href . replace ( rhash , "" ) === location . href . replace ( rhash , "" ) ;
29
+ } ;
33
30
34
31
$ . widget ( "ui.tabs" , {
35
32
version : "@VERSION" ,
You can’t perform that action at this time.
0 commit comments