diff options
| author | David Baumgold | 2013-11-05 13:37:59 -0500 | 
|---|---|---|
| committer | David Baumgold | 2013-11-05 15:05:52 -0500 | 
| commit | ea8a6d7f6c76ec908bc6f1e278e44b54559ffded (patch) | |
| tree | 67e2a9b301dba9379adb4e5f8415ec34d90c25d7 /debug_toolbar/static | |
| parent | fab05ca8cbb728fddceb8a6aaa117cc684ef06c6 (diff) | |
| download | django-debug-toolbar-ea8a6d7f6c76ec908bc6f1e278e44b54559ffded.tar.bz2 | |
Addressing review comments
Diffstat (limited to 'debug_toolbar/static')
| -rw-r--r-- | debug_toolbar/static/debug_toolbar/js/toolbar.js | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.js b/debug_toolbar/static/debug_toolbar/js/toolbar.js index 6aa503e..094c3ac 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.js @@ -240,12 +240,12 @@      function renderPerf() {          // Browser timing remains hidden unless we can successfully access the performance object          var perf = window.performance || window.msPerformance || -                    window.webkitPerformance || window.mozPerformance; +                   window.webkitPerformance || window.mozPerformance;          if (perf) {              var rowCount = 0,                  timingOffset = perf.timing.navigationStart, -                timingEnd = perf.timing.loadEventEnd; -            var totalTime = timingEnd - timingOffset; +                timingEnd = perf.timing.loadEventEnd, +                totalTime = timingEnd - timingOffset;              function getLeft(stat) {                  return ((perf.timing[stat] - timingOffset) / (totalTime)) * 100.0;              } @@ -265,9 +265,9 @@                                '<td>' + (perf.timing[stat] - timingOffset) + ' (+' + (perf.timing[endStat] - perf.timing[stat]) + ')</td>');                  } else {                      // Render a point in time -          $row.html('<td>' + stat + '</td>' + -                    '<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart" style="left:' + getLeft(stat) + '%;"><strong style="width:2px;"> </strong></div></div></td>' + -                    '<td>' + (perf.timing[stat] - timingOffset) + '</td>'); +                     $row.html('<td>' + stat + '</td>' + +                               '<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart" style="left:' + getLeft(stat) + '%;"><strong style="width:2px;"> </strong></div></div></td>' + +                               '<td>' + (perf.timing[stat] - timingOffset) + '</td>');                  }                  $('#djDebugBrowserTimingTableBody').append($row);              } @@ -275,7 +275,7 @@              // This is a reasonably complete and ordered set of timing periods (2 params) and events (1 param)              addRow('domainLookupStart', 'domainLookupEnd');              addRow('connectStart', 'connectEnd'); -            addRow('requestStart', 'responseEnd') // There is no requestEnd +            addRow('requestStart', 'responseEnd'); // There is no requestEnd              addRow('responseStart', 'responseEnd');              addRow('domLoading', 'domComplete'); // Spans the events below              addRow('domInteractive');  | 
