Merge pull request #480 from mateusz/minor-tabset-exception

BUGFIX: cater for elements without href
This commit is contained in:
Sean Harvey 2012-05-22 21:10:12 -07:00
commit fa6c39bc2c

View File

@ -26,8 +26,8 @@
*/
rewriteHashlinks: function() {
$(this).find('ul a').each(function() {
var href = $(this).attr('href').replace(/.*(#.*)/, '$1');
if(href) $(this).attr('href', href);
var href = $(this).attr('href');
if(href) $(this).attr('href', href.replace(/.*(#.*)/, '$1'));
});
}
});