Use Handlebars.registerHelper instead of .helper

This commit is contained in:
Piotr Sarnacki 2014-12-30 12:25:43 +01:00
parent fbcfa04859
commit d95738c975

View File

@ -110,7 +110,7 @@ Travis.ErrorsView = Ember.View.extend
).property('@errors')
show: Ember.computed.notEmpty('errors.[]')
Ember.Handlebars.helper('travis-errors', (name, options) ->
Ember.Handlebars.registerHelper('travis-errors', (name, options) ->
errors = @get('errors').for(name)
view = Travis.ErrorsView.create(
controller: this