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

Unified Diff: tracing/tracing/ui/base/drag_handle.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/dom_helpers.html ('k') | tracing/tracing/ui/base/draw_helpers.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/drag_handle.html
diff --git a/tracing/tracing/ui/base/drag_handle.html b/tracing/tracing/ui/base/drag_handle.html
index 405f9538f359e25ee1412d554ada740752623c44..0f29d5e682427bbfae259a3cb122127100cb3ce4 100644
--- a/tracing/tracing/ui/base/drag_handle.html
+++ b/tracing/tracing/ui/base/drag_handle.html
@@ -74,8 +74,7 @@ Polymer({
set target(target) {
this.observer_.disconnect();
this.target_ = target;
- if (!this.target_)
- return;
+ if (!this.target_) return;
this.observer_.observe(this.target_, {
attributes: true,
attributeFilter: ['class']
@@ -88,10 +87,11 @@ Polymer({
set horizontal(h) {
this.horizontal_ = h;
- if (this.horizontal_)
+ if (this.horizontal_) {
this.className = 'horizontal-drag-handle';
- else
+ } else {
this.className = 'vertical-drag-handle';
+ }
},
get vertical() {
@@ -104,8 +104,9 @@ Polymer({
forceMutationObserverFlush_: function() {
var records = this.observer_.takeRecords();
- if (records.length)
+ if (records.length) {
this.didTargetMutate_(records);
+ }
},
didTargetMutate_: function(e) {
@@ -167,8 +168,7 @@ Polymer({
},
onMouseDown_: function(e) {
- if (!this.target_)
- return;
+ if (!this.target_) return;
this.forceMutationObserverFlush_();
this.lastMousePos_ = this.horizontal_ ? e.clientY : e.clientX;
document.addEventListener('mousemove', this.onMouseMove_);
« no previous file with comments | « tracing/tracing/ui/base/dom_helpers.html ('k') | tracing/tracing/ui/base/draw_helpers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698