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

Unified Diff: tracing/tracing/ui/find_control.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/extras/v8/gc_objects_stats_table.html ('k') | tracing/tracing/ui/find_controller.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/find_control.html
diff --git a/tracing/tracing/ui/find_control.html b/tracing/tracing/ui/find_control.html
index 7cbdd79be109605da6c19c558016cd27f5ae70d2..7a499237f6389cf796c51d58c4abdd925a5c9422 100644
--- a/tracing/tracing/ui/find_control.html
+++ b/tracing/tracing/ui/find_control.html
@@ -95,10 +95,11 @@ Polymer({
e.stopPropagation();
return;
} else if (e.keyCode === 13) {
- if (e.shiftKey)
+ if (e.shiftKey) {
this.findPrevious();
- else
+ } else {
this.findNext();
+ }
}
},
@@ -145,14 +146,16 @@ Polymer({
},
findNext: function() {
- if (this.controller)
+ if (this.controller) {
this.controller.findNext();
+ }
this.updateHitCountEl();
},
findPrevious: function() {
- if (this.controller)
+ if (this.controller) {
this.controller.findPrevious();
+ }
this.updateHitCountEl();
},
« no previous file with comments | « tracing/tracing/ui/extras/v8/gc_objects_stats_table.html ('k') | tracing/tracing/ui/find_controller.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698