Fix lack of 'var' in evaluationsettings
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/896e117f Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/896e117f Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/896e117f Branch: refs/heads/master Commit: 896e117fc1161b51387e6964b49ce60c01b964bc Parents: d91b103 Author: Michael Joyce <[email protected]> Authored: Fri Jul 18 10:45:37 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Fri Jul 18 10:45:37 2014 -0700 ---------------------------------------------------------------------- .../app/scripts/services/evaluationsettings.js | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/896e117f/ocw-ui/frontend-new/app/scripts/services/evaluationsettings.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend-new/app/scripts/services/evaluationsettings.js b/ocw-ui/frontend-new/app/scripts/services/evaluationsettings.js index 97e1d75..f2faf52 100644 --- a/ocw-ui/frontend-new/app/scripts/services/evaluationsettings.js +++ b/ocw-ui/frontend-new/app/scripts/services/evaluationsettings.js @@ -8,10 +8,10 @@ * Service in the ocwUiApp. */ angular.module('ocwUiApp') -.service('evaluationSettings', function($rootScope, $http) { + .service('evaluationSettings', function($rootScope, $http) { $http.get($rootScope.baseURL + '/processing/metrics/').then(function(data) { - metrics_data = data['data']['metrics']; - metrics = []; + var metrics_data = data['data']['metrics']; + var metrics = []; for (var i = 0; i < metrics_data.length; ++i) { metrics.push({'name': metrics_data[i], 'select': false}); @@ -20,18 +20,18 @@ angular.module('ocwUiApp') settings['metrics'] = metrics; }); - var settings = { - 'metrics': [], - 'temporal': { - 'options': ['daily', 'monthly', 'yearly'], - 'selected': 'yearly', - }, - 'spatialSelect': null, - }; + var settings = { + 'metrics': [], + 'temporal': { + 'options': ['daily', 'monthly', 'yearly'], + 'selected': 'yearly', + }, + 'spatialSelect': null, + }; - return { - getSettings: function() { - return settings; - } - }; -}); + return { + getSettings: function() { + return settings; + } + }; + });
