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

Unified Diff: tracing/tracing/ui/base/list_and_associated_view.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/line_chart_test.html ('k') | tracing/tracing/ui/base/list_view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/list_and_associated_view.html
diff --git a/tracing/tracing/ui/base/list_and_associated_view.html b/tracing/tracing/ui/base/list_and_associated_view.html
index 361cbc678c1cdaa28c5987c219a07e0f272a7c78..45ca8a15c7a35221c4abfb8faf5ecbec655e880d 100644
--- a/tracing/tracing/ui/base/list_and_associated_view.html
+++ b/tracing/tracing/ui/base/list_and_associated_view.html
@@ -99,10 +99,11 @@ tr.exportTo('tr.ui.b', function() {
}
itemEl.item = this.list_[i];
var getter = this.list_[i].__lookupGetter__(this.listProperty_);
- if (getter)
+ if (getter) {
Polymer.dom(itemEl).textContent = getter.call(this.list_[i]);
- else
+ } else {
Polymer.dom(itemEl).textContent = this.list_[i][this.listProperty_];
+ }
}
if (this.children[1] === this.placeholder_) {
@@ -110,8 +111,9 @@ tr.exportTo('tr.ui.b', function() {
this.children[1]);
}
if (this.listView_.children.length &&
- !this.listView_.selectedElement)
+ !this.listView_.selectedElement) {
this.listView_.selectedElement = this.listView_.children[0];
+ }
},
onSelectionChanged_: function(e) {
« no previous file with comments | « tracing/tracing/ui/base/line_chart_test.html ('k') | tracing/tracing/ui/base/list_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698