From: rniwa@webkit.org Date: Thu, 8 Oct 2015 03:12:17 +0000 (+0000) Subject: Unreviewed race condition fix. Exit early when xScale or yScale is not defined. X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=b985cf0225f224e1f6069bd4c2212669d3e696cc Unreviewed race condition fix. Exit early when xScale or yScale is not defined. * public/v2/interactive-chart.js: (App.InteractiveChartComponent._updateRangeBarRects): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190704 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Websites/perf.webkit.org/ChangeLog b/Websites/perf.webkit.org/ChangeLog index c2970c4d8d73..01852a0016c5 100644 --- a/Websites/perf.webkit.org/ChangeLog +++ b/Websites/perf.webkit.org/ChangeLog @@ -1,3 +1,10 @@ +2015-10-07 Ryosuke Niwa + + Unreviewed race condition fix. Exit early when xScale or yScale is not defined. + + * public/v2/interactive-chart.js: + (App.InteractiveChartComponent._updateRangeBarRects): + 2015-10-07 Ryosuke Niwa Add a page that cycles through v2 dashboards diff --git a/Websites/perf.webkit.org/public/v2/interactive-chart.js b/Websites/perf.webkit.org/public/v2/interactive-chart.js index d06d593cf322..9a04540a865b 100644 --- a/Websites/perf.webkit.org/public/v2/interactive-chart.js +++ b/Websites/perf.webkit.org/public/v2/interactive-chart.js @@ -645,6 +645,8 @@ App.InteractiveChartComponent = Ember.Component.extend({ var xScale = this._x; var yScale = this._y; + if (!xScale || !yScale) + return; // Expand the width of each range as needed and sort ranges by the left-edge of ranges. var minWidth = 3;