| Index: tracing/tracing/ui/tracks/stacked_bars_track.html
|
| diff --git a/tracing/tracing/ui/tracks/stacked_bars_track.html b/tracing/tracing/ui/tracks/stacked_bars_track.html
|
| index e618bc48027677102995833f1cdfe85261da91db..3382b7744cd7c82609be294b740a3be2ba91e55d 100644
|
| --- a/tracing/tracing/ui/tracks/stacked_bars_track.html
|
| +++ b/tracing/tracing/ui/tracks/stacked_bars_track.html
|
| @@ -70,8 +70,9 @@ tr.exportTo('tr.ui.tracks', function() {
|
| function(x) { return x.ts; },
|
| function(x, i) {
|
| if (i === snapshots.length - 1) {
|
| - if (snapshots.length === 1)
|
| + if (snapshots.length === 1) {
|
| return maxBounds;
|
| + }
|
|
|
| return snapshots[i].ts - snapshots[i - 1].ts;
|
| }
|
| @@ -93,8 +94,9 @@ tr.exportTo('tr.ui.tracks', function() {
|
| * @private
|
| */
|
| addEventNearToProvidedEventToSelection: function(event, offset, selection) {
|
| - if (!(event instanceof tr.model.ObjectSnapshot))
|
| + if (!(event instanceof tr.model.ObjectSnapshot)) {
|
| throw new Error('Unrecognized event');
|
| + }
|
| var objectSnapshots = this.objectInstance_.snapshots;
|
| var index = objectSnapshots.indexOf(event);
|
| var newIndex = index + offset;
|
| @@ -116,8 +118,7 @@ tr.exportTo('tr.ui.tracks', function() {
|
| worldX,
|
| worldMaxDist);
|
|
|
| - if (!snapshot)
|
| - return;
|
| + if (!snapshot) return;
|
|
|
| selection.push(snapshot);
|
| }
|
|
|