Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23698107F3 for ; Wed, 12 Jun 2013 23:20:32 +0000 (UTC) Received: (qmail 77474 invoked by uid 500); 12 Jun 2013 23:20:29 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 77452 invoked by uid 500); 12 Jun 2013 23:20:29 -0000 Mailing-List: contact commits-help@climate.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.incubator.apache.org Delivered-To: mailing list commits@climate.incubator.apache.org Received: (qmail 77445 invoked by uid 99); 12 Jun 2013 23:20:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 23:20:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Jun 2013 23:20:26 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EE2BD2388B43; Wed, 12 Jun 2013 23:20:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1492494 - in /incubator/climate/trunk/rcmet/src/main/ui/app/js: app.js services/EvaluationSettings.js services/RegionSelectParams.js services/SelectedDatasetInformation.js Date: Wed, 12 Jun 2013 23:20:05 -0000 To: commits@climate.incubator.apache.org From: joyce@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130612232005.EE2BD2388B43@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: joyce Date: Wed Jun 12 23:20:05 2013 New Revision: 1492494 URL: http://svn.apache.org/r1492494 Log: Resolves CLIMATE-102 - Move services to new module. - Adds new component to the App object called Services. All new services are added to this component. - Adds services module as a dependency to the primary application module. Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js?rev=1492494&r1=1492493&r2=1492494&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js Wed Jun 12 23:20:05 2013 @@ -4,7 +4,9 @@ // names isolated to a single location as well as simplifying future init code. var App = App || {}; -angular.module('rcmes', ['ui.date']). +App.Services = angular.module('rcmes.services', []); + +angular.module('rcmes', ['rcmes.services', 'ui.date']). config(['$routeProvider', function($routeProvider) { $routeProvider. when('/obs', {templateUrl: 'partials/selectObservation.html', controller: ObservationSelectCtrl}). Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js?rev=1492494&r1=1492493&r2=1492494&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js Wed Jun 12 23:20:05 2013 @@ -16,7 +16,7 @@ // // EvaluationSettings gives controllers access to the user's selected evaluation settings. -angular.module('rcmes').service('evaluationSettings', function() { +App.Services.service('evaluationSettings', function() { var settings = { 'metrics': [ {'name': 'bias', 'select': true}, Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js?rev=1492494&r1=1492493&r2=1492494&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js Wed Jun 12 23:20:05 2013 @@ -16,7 +16,7 @@ // // RegionSelectParams gives controllers access to the user selected evaluation region. -angular.module('rcmes').service('regionSelectParams', function() { +App.Services.service('regionSelectParams', function() { var parameters = { "areValid" : true, "latMin" : "", Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js?rev=1492494&r1=1492493&r2=1492494&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js Wed Jun 12 23:20:05 2013 @@ -17,7 +17,7 @@ // Service for giving controllers access to the information on datasets that // the user has selected for evaluation. -angular.module('rcmes').service('selectedDatasetInformation', function() { +App.Services.service('selectedDatasetInformation', function() { var datasets = []; return {