Remove check of model state in DurationCalculation
We no longer need this check, because it was only relevant with Ember Data. Additionally it was a cause of a travis-ci/travis-ci#1992, because of wrong syntax: unless someFunction false or true will only check for a result of someFunction with an argument being the result of `or` expression.
This commit is contained in:
parent
e0865756d1
commit
e045ab7481
|
@ -7,6 +7,6 @@ Travis.DurationCalculations = Ember.Mixin.create
|
||||||
).property('_duration', 'finishedAt', 'startedAt')
|
).property('_duration', 'finishedAt', 'startedAt')
|
||||||
|
|
||||||
updateTimes: ->
|
updateTimes: ->
|
||||||
unless ['rootState.loaded.reloading', 'rootState.loading'].contains @get('stateManager.currentState.path') or @get('isFinished')
|
unless @get('isFinished')
|
||||||
@notifyPropertyChange '_duration'
|
@notifyPropertyChange '_duration'
|
||||||
@notifyPropertyChange 'finished_at'
|
@notifyPropertyChange 'finished_at'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user