Merge pull request #824 from nyeholt/tab_null_pointer

BUG Fixed possible reference to null string
This commit is contained in:
Ingo Schommer 2012-09-26 02:31:13 -07:00
commit 61148834f2

View File

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