Title: [190704] trunk/Websites/perf.webkit.org
Revision
190704
Author
rn...@webkit.org
Date
2015-10-07 20:12:17 -0700 (Wed, 07 Oct 2015)

Log Message

Unreviewed race condition fix. Exit early when xScale or yScale is not defined.

* public/v2/interactive-chart.js:
(App.InteractiveChartComponent._updateRangeBarRects):

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (190703 => 190704)


--- trunk/Websites/perf.webkit.org/ChangeLog	2015-10-08 02:26:13 UTC (rev 190703)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2015-10-08 03:12:17 UTC (rev 190704)
@@ -1,5 +1,12 @@
 2015-10-07  Ryosuke Niwa  <rn...@webkit.org>
 
+        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  <rn...@webkit.org>
+
         Add a page that cycles through v2 dashboards
         https://bugs.webkit.org/show_bug.cgi?id=149907
 

Modified: trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js (190703 => 190704)


--- trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js	2015-10-08 02:26:13 UTC (rev 190703)
+++ trunk/Websites/perf.webkit.org/public/v2/interactive-chart.js	2015-10-08 03:12:17 UTC (rev 190704)
@@ -645,6 +645,8 @@
 
         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;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to