Fix variable declarations in parameterselect

Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/8f375532
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/8f375532
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/8f375532

Branch: refs/heads/master
Commit: 8f375532128c06b26cefb2aee0e385763cebf545
Parents: 6a50120
Author: Michael Joyce <[email protected]>
Authored: Fri Jul 18 13:50:47 2014 -0700
Committer: Michael Joyce <[email protected]>
Committed: Fri Jul 18 13:50:47 2014 -0700

----------------------------------------------------------------------
 ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/8f375532/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
----------------------------------------------------------------------
diff --git a/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js 
b/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
index 2547b5c..c1f648e 100644
--- a/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
+++ b/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
@@ -111,7 +111,7 @@ angular.module('ocwUiApp')
 
       // Determine the temporal resolution to use when doing a temporal rebin. 
The
       // value is used to determine the timedelta in days to use.
-      temporal_res = settings.temporal.selected;
+      var temporal_res = settings.temporal.selected;
 
       if (temporal_res == 'daily') {
         data['temporal_resolution'] = 1;
@@ -128,7 +128,7 @@ angular.module('ocwUiApp')
 
       // Load the Metrics for the evaluation
       data['metrics'] = []
-      metrics = settings.metrics
+      var metrics = settings.metrics
       for (var i = 0; i < metrics.length; i++) {
         var metric = metrics[i];
 

Reply via email to