Permalink
Browse files

BUG Fix rewriteHashlinks in TabSet

As per commit 3478813, check for presence of href before matching
  • Loading branch information...
1 parent 3478813 commit 1a4b245e846434ee3f61f80715b37a326ef4b9d6 @nyeholt nyeholt committed Dec 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 javascript/TabSet.js
View
@@ -24,6 +24,8 @@
*/
rewriteHashlinks: function() {
$(this).find('ul a').each(function() {
+ if (!$(this).attr('href')) return;
+
var matches = $(this).attr('href').match(/#.*/);
if(!matches) return;
$(this).attr('href', document.location.href.replace(/#.*/, '') + matches[0]);

0 comments on commit 1a4b245

Please sign in to comment.