Posted by aidanlis on November 28, 2011 at 4:55am
2 followers
| Project: | Admin |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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
#1
Patch attached:
#2
#3
Thanks aidanlis, that worked perfectly!