@@ -45,15 +45,15 @@ define(
45
45
this . validation = new TimeConductorValidation ( this . conductor ) ;
46
46
47
47
// Construct the provided time system definitions
48
- this . timeSystems = timeSystems . map ( function ( timeSystemConstructor ) {
48
+ this . timeSystems = timeSystems . map ( function ( timeSystemConstructor ) {
49
49
return timeSystemConstructor ( ) ;
50
50
} ) ;
51
51
52
52
//Set the initial state of the view based on current time conductor
53
53
this . initializeScope ( ) ;
54
54
55
55
this . conductor . on ( 'bounds' , this . setFormFromBounds ) ;
56
- this . conductor . on ( 'follow' , function ( follow ) {
56
+ this . conductor . on ( 'follow' , function ( follow ) {
57
57
$scope . followMode = follow ;
58
58
} ) ;
59
59
this . conductor . on ( 'timeSystem' , this . changeTimeSystem ) ;
@@ -67,7 +67,7 @@ define(
67
67
/**
68
68
* @private
69
69
*/
70
- TimeConductorController . prototype . initializeScope = function ( ) {
70
+ TimeConductorController . prototype . initializeScope = function ( ) {
71
71
//Set time Conductor bounds in the form
72
72
this . $scope . boundsModel = this . conductor . bounds ( ) ;
73
73
@@ -126,10 +126,11 @@ define(
126
126
TimeConductorController . prototype . setFormFromMode = function ( mode ) {
127
127
this . $scope . modeModel . selectedKey = mode ;
128
128
//Synchronize scope with time system on mode
129
- this . $scope . timeSystemModel . options = this . conductorViewService . availableTimeSystems ( )
129
+ this . $scope . timeSystemModel . options =
130
+ this . conductorViewService . availableTimeSystems ( )
130
131
. map ( function ( t ) {
131
132
return t . metadata ;
132
- } ) ;
133
+ } ) ;
133
134
} ;
134
135
135
136
/**
@@ -204,13 +205,13 @@ define(
204
205
* @param key
205
206
* @see TimeConductorController#setTimeSystem
206
207
*/
207
- TimeConductorController . prototype . selectTimeSystemByKey = function ( key ) {
208
- var selected = this . timeSystems . filter ( function ( timeSystem ) {
208
+ TimeConductorController . prototype . selectTimeSystemByKey = function ( key ) {
209
+ var selected = this . timeSystems . filter ( function ( timeSystem ) {
209
210
return timeSystem . metadata . key === key ;
210
211
} ) [ 0 ] ;
211
212
this . conductor . timeSystem ( selected , selected . defaults ( ) . bounds ) ;
212
213
} ;
213
-
214
+
214
215
/**
215
216
* Handles time system change from time conductor
216
217
*
@@ -222,7 +223,7 @@ define(
222
223
*/
223
224
TimeConductorController . prototype . changeTimeSystem = function ( newTimeSystem ) {
224
225
if ( newTimeSystem && ( newTimeSystem !== this . $scope . timeSystemModel . selected ) ) {
225
- if ( newTimeSystem . defaults ( ) ) {
226
+ if ( newTimeSystem . defaults ( ) ) {
226
227
var deltas = newTimeSystem . defaults ( ) . deltas || { start : 0 , end : 0 } ;
227
228
var bounds = newTimeSystem . defaults ( ) . bounds || { start : 0 , end : 0 } ;
228
229
0 commit comments