Specify _finishedAt and _startedAt as dependencies for duration

Because of our partial loading implementation we need to specify
finishedAt and startedAt differently than we would normally do. For some
reason duration was not recalculated while loading record and specifying
raw attributes helps here.
This commit is contained in:
Piotr Sarnacki 2014-08-15 06:25:19 +02:00
parent 4fc599f767
commit 61f820cada

View File

@ -6,7 +6,7 @@ Travis.DurationCalculations = Ember.Mixin.create
duration
else
Travis.Helpers.durationFrom(@get('startedAt'), @get('finishedAt'))
).property('_duration', 'finishedAt', 'startedAt', 'notStarted')
).property('_duration', 'finishedAt', 'startedAt', 'notStarted', '_finishedAt', '_startedAt')
updateTimes: ->
unless @get('isFinished')