I'm running this module against jQuery 1.7.1

The expression $(breadcrumb[key]).attr('class') can return undefined.

When the method .html() is called on the next line, it errors out.

See the screenshot for debug info.

Comments

Status:Needs work» Needs review
StatusFileSize
new664 bytes

I added an or operator and provide an assignment of an empty string in the case that $(breadcrumb[key]).attr('class') returns undefined.