Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Unified Diff: dashboard/dashboard/static/autocomplete.html

Issue 2588203002: Added in a revision picker with dummy data (Closed)
Patch Set: figuring out what is on this branch Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/speed_releasing_data.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/static/autocomplete.html
diff --git a/dashboard/dashboard/static/autocomplete.html b/dashboard/dashboard/static/autocomplete.html
index e0a108c0bcf89c19f4482def3f4a648a4395fc7c..c94dfb4ec2a3ca99bc90ac6c48c7e62bcd89d123 100644
--- a/dashboard/dashboard/static/autocomplete.html
+++ b/dashboard/dashboard/static/autocomplete.html
@@ -163,13 +163,15 @@ var autocomplete = (function() {
continue;
}
- this.addWord_(this.trie_, source.name, i, source.name.length, 1);
+ this.addWord_(this.trie_, source.name, i,
+ source.name.toString().length, 1);
- var words = source.name.split(UNIMPORTANT_CHAR_REGEX_);
+ var words = source.name.toString().split(UNIMPORTANT_CHAR_REGEX_);
if (words.length > 1) {
var position = 1;
for (var j = 0; j < words.length; j++) {
- this.addWord_(this.trie_, words[j], i, source.name.length, position);
+ this.addWord_(this.trie_, words[j], i,
+ source.name.toString().length, position);
position += words[j].length;
}
}
@@ -187,7 +189,7 @@ var autocomplete = (function() {
*/
Trie.prototype.addWord_ = function(node, word, index, totalLength,
position) {
- var characters = word.toLowerCase().split('');
+ var characters = word.toString().toLowerCase().split('');
for (var i = 0; i < characters.length; i++) {
var letter = characters[i];
if (!(letter in node[1])) {
« no previous file with comments | « dashboard/dashboard/speed_releasing_data.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698