Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1713392_jquery-drilldown-undefined-html_1.patch | 664 bytes | jessebeach |
Screen Shot 2012-08-04 at 12.55.29 PM.jpg | 116.75 KB | jessebeach |
Comments
Comment #1
jessebeach CreditAttribution: jessebeach commentedI added an or operator and provide an assignment of an empty string in the case that
$(breadcrumb[key]).attr('class')
returns undefined.