Index: tracing/tracing/ui/tracks/letter_dot_track.html |
diff --git a/tracing/tracing/ui/tracks/letter_dot_track.html b/tracing/tracing/ui/tracks/letter_dot_track.html |
index ef28274961c32f261f6de8974ae6d12425fcf7b5..79c1f062fcbfd4c2250530126fe0296deeecb690 100644 |
--- a/tracing/tracing/ui/tracks/letter_dot_track.html |
+++ b/tracing/tracing/ui/tracks/letter_dot_track.html |
@@ -80,8 +80,8 @@ tr.exportTo('tr.ui.tracks', function() { |
}, |
draw: function(type, viewLWorld, viewRWorld) { |
- if (this.items_ === undefined) |
- return; |
+ if (this.items_ === undefined) return; |
+ |
switch (type) { |
case tr.ui.tracks.DrawType.GENERAL_EVENT: |
this.drawLetterDots_(viewLWorld, viewRWorld); |
@@ -120,10 +120,10 @@ tr.exportTo('tr.ui.tracks', function() { |
for (var i = loI; i < items.length; ++i) { |
var item = items[i]; |
var x = item.start; |
- if (x - itemRadiusWorld > viewRWorld) |
- break; |
- if (item.selected !== selected) |
- continue; |
+ if (x - itemRadiusWorld > viewRWorld) break; |
+ |
+ if (item.selected !== selected) continue; |
+ |
var xView = dt.xWorldToView(x); |
ctx.fillStyle = EventPresenter.getSelectableItemColorAsString(item); |
@@ -161,8 +161,7 @@ tr.exportTo('tr.ui.tracks', function() { |
}, |
addEventsToTrackMap: function(eventToTrackMap) { |
- if (this.items_ === undefined) |
- return; |
+ if (this.items_ === undefined) return; |
this.items_.forEach(function(item) { |
item.addToTrackMap(eventToTrackMap, this); |
@@ -171,8 +170,7 @@ tr.exportTo('tr.ui.tracks', function() { |
addIntersectingEventsInRangeToSelectionInWorldSpace: function( |
loWX, hiWX, viewPixWidthWorld, selection) { |
- if (this.items_ === undefined) |
- return; |
+ if (this.items_ === undefined) return; |
var itemRadiusWorld = viewPixWidthWorld * this.dumpRadiusView; |
tr.b.math.iterateOverIntersectingIntervals( |
@@ -196,15 +194,13 @@ tr.exportTo('tr.ui.tracks', function() { |
* @private |
*/ |
addEventNearToProvidedEventToSelection: function(event, offset, selection) { |
- if (this.items_ === undefined) |
- return; |
+ if (this.items_ === undefined) return; |
var items = this.items_; |
var index = tr.b.findFirstIndexInArray(items, function(item) { |
return item.modelItem === event; |
}); |
- if (index === -1) |
- return false; |
+ if (index === -1) return false; |
var newIndex = index + offset; |
if (newIndex >= 0 && newIndex < items.length) { |
@@ -219,8 +215,7 @@ tr.exportTo('tr.ui.tracks', function() { |
addClosestEventToSelection: function(worldX, worldMaxDist, loY, hiY, |
selection) { |
- if (this.items_ === undefined) |
- return; |
+ if (this.items_ === undefined) return; |
var item = tr.b.math.findClosestElementInSortedArray( |
this.items_, |
@@ -228,8 +223,7 @@ tr.exportTo('tr.ui.tracks', function() { |
worldX, |
worldMaxDist); |
- if (!item) |
- return; |
+ if (!item) return; |
item.addToSelection(selection); |
} |