Use Handlebars.helper instead of registerBoundHelper

This commit is contained in:
Piotr Sarnacki 2013-07-31 13:49:46 +02:00
parent f271622758
commit ccfd116f08

View File

@ -18,8 +18,9 @@ Ember.registerBoundHelper 'formatTime', (value, options) ->
Ember.registerBoundHelper 'formatDuration', (duration, options) ->
safe Travis.Helpers.timeInWords(duration)
Ember.registerBoundHelper 'formatCommit', (commit, options) ->
Ember.Handlebars.helper('formatCommit', (commit) ->
safe Travis.Helpers.formatCommit(commit.get('sha'), commit.get('branch')) if commit
, 'sha', 'branch')
Ember.registerBoundHelper 'formatSha', (sha, options) ->
safe Travis.Helpers.formatSha(sha)