Bug 764346 - Let Error Console filter match more properties like source, line. r=jaws

This commit is contained in:
Tom Schuster 2012-06-19 17:24:58 +02:00
parent 70a578b8d5
commit 4a31f5f99a

View File

@ -310,7 +310,12 @@
<method name="filterElement">
<parameter name="aRow" />
<body><![CDATA[
if (this.stringMatchesFilters(aRow.getAttribute("msg"), this.mFilter)) {
let anyMatch = ["msg", "href", "line", "code"].some(function (key) {
return (aRow.hasAttribute(key) &&
this.stringMatchesFilters(aRow.getAttribute(key), this.mFilter));
}, this);
if (anyMatch) {
aRow.classList.remove("filtered-by-string")
} else {
aRow.classList.add("filtered-by-string")