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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jessebeach’s picture

Status: Needs work » Needs review
FileSize
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.