Skip to content
Permalink
Browse files

better performing check for base and href in IE

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Feb 26, 2009
1 parent eade720 commit e744869d8f5d70a2e4b8d6aea90bfd201836aaca
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/ui.tabs.js
@@ -87,9 +87,9 @@ $.widget("ui.tabs", {
// Same consideration applies for an added tab with a fragment identifier
// since a[href=#fragment-identifier] does unexpectedly not match.
// Thus normalize href attribute...

if (href.split('#')[0] == location.toString().split('#')[0] ||
$('base').length && href.split('#')[0] == $('base')[0].href) {
var hrefBase = href.split('#')[0], baseEl;
if (hrefBase && (hrefBase === location.toString().split('#')[0] ||
(baseEl = $('base')[0]) && hrefBase === baseEl.href)) {
href = a.hash;
a.href = href;
}

0 comments on commit e744869

Please sign in to comment.
You can’t perform that action at this time.