Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/watcher.js

Issue 29333128: Issue 3463 - Filtering broken in Diagnostics (Closed)
Patch Set: Don`t use non-standard Iterator constructor Created Jan. 4, 2016, 2:27 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/watcher.js
===================================================================
--- a/chrome/content/watcher.js
+++ b/chrome/content/watcher.js
@@ -405,18 +405,18 @@ var treeView = {
this.refilter();
},
filter: function(entry)
{
if (this._filterString)
{
let foundMatch = false;
- for (let label of entry.cols)
- if (label.toLowerCase().indexOf(this._filterString) >= 0)
+ for (let col in entry.cols)
+ if (entry.cols[col].toLowerCase().indexOf(this._filterString) >= 0)
foundMatch = true;
if (!foundMatch)
return false;
}
return true;
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld