There's a problem here in jQuery 1.7:
var clone = $('')
.attr('href', $(breadcrumb[key]).attr('href'))
.attr('class', $(breadcrumb[key]).attr('class'))
.html($(breadcrumb[key]).html())
If $(breadcrumb[key]).attr('class') is undefined, .attr will return a string and .html will fail.
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedPatch attached:
Comment #2
aidanlis CreditAttribution: aidanlis commentedComment #3
mail@victorquinn.com CreditAttribution: mail@victorquinn.com commentedThanks aidanlis, that worked perfectly!
Comment #4
bensnyder CreditAttribution: bensnyder commentedworks for me!