Use Handlebars.registerHelper instead of .helper
This commit is contained in:
parent
fbcfa04859
commit
d95738c975
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user