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

Unified Diff: tracing/tracing/ui/base/color_legend.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « tracing/tracing/ui/base/checkbox_picker.html ('k') | tracing/tracing/ui/base/column_chart.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/color_legend.html
diff --git a/tracing/tracing/ui/base/color_legend.html b/tracing/tracing/ui/base/color_legend.html
index 791440def9e4080ece202d8f09991eca86462562..7a4f66a9c595a6f8dc29376c0e69e723e3f39660 100644
--- a/tracing/tracing/ui/base/color_legend.html
+++ b/tracing/tracing/ui/base/color_legend.html
@@ -72,10 +72,11 @@ Polymer({
Polymer.dom(this.$.label).textContent = '';
Polymer.dom(this.$.label).appendChild(tr.ui.b.asHTMLOrTextNode(label));
- if (colorId === undefined)
+ if (colorId === undefined) {
this.$.square.style.color = 'initial';
- else
+ } else {
this.$.square.style.color = tr.b.ColorScheme.colorsAsStrings[colorId];
+ }
}
});
</script>
« no previous file with comments | « tracing/tracing/ui/base/checkbox_picker.html ('k') | tracing/tracing/ui/base/column_chart.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698