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.


jessebeach’s picture

Status: Needs work » Needs review
664 bytes

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