Use durationFrom as durationFromHelper
This commit is contained in:
parent
1e9d136911
commit
429d580b00
|
@ -7,7 +7,7 @@ EnvVar = Travis.EnvVar
|
||||||
Build = Travis.Build
|
Build = Travis.Build
|
||||||
SshKey = Travis.SshKey
|
SshKey = Travis.SshKey
|
||||||
Event = Travis.Event
|
Event = Travis.Event
|
||||||
durationFrom = Travis.Helpers.durationFrom
|
durationFromHelper = Travis.Helpers.durationFrom
|
||||||
Ajax = Travis.ajax
|
Ajax = Travis.ajax
|
||||||
|
|
||||||
Repo = Model.extend
|
Repo = Model.extend
|
||||||
|
@ -105,7 +105,7 @@ Repo = Model.extend
|
||||||
|
|
||||||
lastBuildDuration: (->
|
lastBuildDuration: (->
|
||||||
duration = @get('_lastBuildDuration')
|
duration = @get('_lastBuildDuration')
|
||||||
duration = durationFrom(@get('lastBuildStartedAt'), @get('lastBuildFinishedAt')) unless duration
|
duration = durationFromHelper(@get('lastBuildStartedAt'), @get('lastBuildFinishedAt')) unless duration
|
||||||
duration
|
duration
|
||||||
).property('_lastBuildDuration', 'lastBuildStartedAt', 'lastBuildFinishedAt')
|
).property('_lastBuildDuration', 'lastBuildStartedAt', 'lastBuildFinishedAt')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user