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 079d25f..236f5a9 100644 (file)
@@ -1,5 +1,12 @@
 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.
 
         * public/include/manifest.php:
index e69ca6b..3dc452f 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)