Unreviewed build fix. currentPoint wasn't defined when selectedPoints was used to...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Feb 2015 22:55:57 +0000 (22:55 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Feb 2015 22:55:57 +0000 (22:55 +0000)
* public/v2/app.js:
(App.PaneController._updateDetails):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179765 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/v2/app.js

index 079d25f2565fd27a1959efd97458ae7b601834a8..236f5a989ec4d0d310718082ec5068851e4eb54d 100644 (file)
@@ -1,3 +1,10 @@
+2015-02-06  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Unreviewed build fix. currentPoint wasn't defined when selectedPoints was used to find points.
+
+        * public/v2/app.js:
+        (App.PaneController._updateDetails):
+
 2015-02-06  Ryosuke Niwa  <rniwa@webkit.org>
 
         Unreviewed. Commit the forgotten change.
index e69ca6ba29fc468eb2464cd51bc2b04c5a55ee78..3dc452f00d9ba3c2df872906d37d8c02b6f31d3f 100755 (executable)
@@ -803,13 +803,13 @@ App.PaneController = Ember.ObjectController.extend({
 
         var currentMeasurement;
         var previousPoint;
-        if (currentPoint) {
-            currentMeasurement = currentPoint.measurement;
+        if (!selectedPoints)
             previousPoint = currentPoint.series.previousPoint(currentPoint);
-        else {
-            currentMeasurement = selectedPoints[selectedPoints.length - 1].measurement;
+        else {
+            currentPoint = selectedPoints[selectedPoints.length - 1];
             previousPoint = selectedPoints[0];
         }
+        var currentMeasurement = currentPoint.measurement;
         var oldMeasurement = previousPoint ? previousPoint.measurement : null;
 
         var formattedRevisions = currentMeasurement.formattedRevisions(oldMeasurement);
@@ -827,7 +827,7 @@ App.PaneController = Ember.ObjectController.extend({
 
         var buildNumber = null;
         var buildURL = null;
-        if (currentPoint) {
+        if (!selectedPoints) {
             buildNumber = currentMeasurement.buildNumber();
             var builder = App.Manifest.builder(currentMeasurement.builderId());
             if (builder)