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