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

Unified Diff: tracing/tracing/ui/extras/side_panel/alerts_side_panel.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
Index: tracing/tracing/ui/extras/side_panel/alerts_side_panel.html
diff --git a/tracing/tracing/ui/extras/side_panel/alerts_side_panel.html b/tracing/tracing/ui/extras/side_panel/alerts_side_panel.html
index 344b5580db2f9eaea4c967d2af6675ed7db5d734..6e6b689533de4df5a7865d47b7439f57b9866c47 100644
--- a/tracing/tracing/ui/extras/side_panel/alerts_side_panel.html
+++ b/tracing/tracing/ui/extras/side_panel/alerts_side_panel.html
@@ -85,8 +85,9 @@ Polymer({
alertsByType_: function(alerts) {
var alertsByType = {};
alerts.forEach(function(alert) {
- if (!alertsByType[alert.title])
+ if (!alertsByType[alert.title]) {
alertsByType[alert.title] = [];
+ }
alertsByType[alert.title].push(alert);
});
@@ -126,8 +127,9 @@ Polymer({
table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW;
table.addEventListener('selection-changed', function(e) {
var row = table.selectedTableRow;
- if (row)
+ if (row) {
this.selectAlertsOfType(row.alertType);
+ }
}.bind(this));
return table;
@@ -135,8 +137,7 @@ Polymer({
updateContents_: function() {
Polymer.dom(this.$.result_area).textContent = '';
- if (this.model_ === undefined)
- return;
+ if (this.model_ === undefined) return;
var panel = this.createAlertsTable_(this.model_.alerts);
Polymer.dom(this.$.result_area).appendChild(panel);
« no previous file with comments | « tracing/tracing/ui/extras/drive/index.html ('k') | tracing/tracing/ui/extras/side_panel/frame_data_side_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698