Skip to content

Commit ea8a6d7

Browse files
Addressing review comments
1 parent fab05ca commit ea8a6d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@
240240
function renderPerf() {
241241
// Browser timing remains hidden unless we can successfully access the performance object
242242
var perf = window.performance || window.msPerformance ||
243-
window.webkitPerformance || window.mozPerformance;
243+
window.webkitPerformance || window.mozPerformance;
244244
if (perf) {
245245
var rowCount = 0,
246246
timingOffset = perf.timing.navigationStart,
247-
timingEnd = perf.timing.loadEventEnd;
248-
var totalTime = timingEnd - timingOffset;
247+
timingEnd = perf.timing.loadEventEnd,
248+
totalTime = timingEnd - timingOffset;
249249
function getLeft(stat) {
250250
return ((perf.timing[stat] - timingOffset) / (totalTime)) * 100.0;
251251
}
@@ -265,17 +265,17 @@
265265
'<td>' + (perf.timing[stat] - timingOffset) + ' (+' + (perf.timing[endStat] - perf.timing[stat]) + ')</td>');
266266
} else {
267267
// Render a point in time
268-
$row.html('<td>' + stat + '</td>' +
269-
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart" style="left:' + getLeft(stat) + '%;"><strong style="width:2px;">&nbsp;</strong></div></div></td>' +
270-
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
268+
$row.html('<td>' + stat + '</td>' +
269+
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart" style="left:' + getLeft(stat) + '%;"><strong style="width:2px;">&nbsp;</strong></div></div></td>' +
270+
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
271271
}
272272
$('#djDebugBrowserTimingTableBody').append($row);
273273
}
274274

275275
// This is a reasonably complete and ordered set of timing periods (2 params) and events (1 param)
276276
addRow('domainLookupStart', 'domainLookupEnd');
277277
addRow('connectStart', 'connectEnd');
278-
addRow('requestStart', 'responseEnd') // There is no requestEnd
278+
addRow('requestStart', 'responseEnd'); // There is no requestEnd
279279
addRow('responseStart', 'responseEnd');
280280
addRow('domLoading', 'domComplete'); // Spans the events below
281281
addRow('domInteractive');

0 commit comments

Comments
 (0)