challenges: view.fn bug fix

This commit is contained in:
Tyler Renelle 2013-05-29 23:23:17 +01:00
parent 64a99e734f
commit b34caaabd6

View file

@ -132,6 +132,6 @@ module.exports.viewHelpers = (view) ->
#Challenges
view.fn 'taskInChallenge', taskInChallenge
view.fn 'taskAttrFromChallenge', (task, attr) ->
t = taskInChallenge(task)
t = taskInChallenge.call(@,task)
t and t[attr]
view.fn 'brokenChallengeLink', (task) -> task?.challenge and !taskInChallenge.call(@,task)