Skip to content

Commit c979e65

Browse files
committed
Some small review fixes.
1 parent 2e6f0d4 commit c979e65

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/profiler/profiler_templates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ var ProfilerTemplates = function()
218218
this._full_timeline_event = function(ms_unit, event)
219219
{
220220
var duration = event.interval.end - event.interval.start;
221-
var width = Math.round(duration * ms_unit); // min-width is specified
222-
var left = Math.round((event.interval.start) * ms_unit);
221+
var width = Math.round(duration * ms_unit); // min-width is specified in .profiler-event-small
222+
var left = Math.round(event.interval.start * ms_unit);
223223
var column = this._order.indexOf(event.type);
224224
return (
225225
["div",
@@ -238,7 +238,7 @@ var ProfilerTemplates = function()
238238
var self_time_amount = duration
239239
? (event.time / duration * 100).toFixed(2)
240240
: 0;
241-
var width = Math.round(duration * ms_unit); // min-width is specified
241+
var width = Math.round(duration * ms_unit); // min-width is specified in .profiler-event
242242
var left = Math.round((event.interval.start - interval_start) * ms_unit);
243243
var column = this._order.indexOf(event.type);
244244
var is_expandable = this._expandables.contains(event.type) && event.childCount > 1;

src/profiler/profiler_view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,7 @@ var ProfilerView = function(id, name, container_class, html, default_handler)
368368
var id = Number(event.target.get_ancestor_attr("data-event-id"));
369369
var timeline_event = this._timeline_list.get_event_by_id(id);
370370
if (timeline_event)
371-
{
372371
this._tooltip.show(this._templates.get_title_all(timeline_event, this._x0));
373-
}
374372
};
375373

376374
this._show_event_details = function(event, target)

0 commit comments

Comments
 (0)