[#1708] tmp workaround for task not defined

This commit is contained in:
Tyler Renelle 2013-11-01 12:43:37 -07:00
parent 8531fb33b2
commit a374f67549

View file

@ -187,6 +187,7 @@ randomDrop = (user, delta, priority, streak = 0, options={}) ->
# {task} task you want to score
# {direction} 'up' or 'down'
obj.score = (user, task, direction, options={}) ->
return unless task
# This is for setting one-time temporary flags, such as streakBonus or itemDropped. Useful for notifying
# the API consumer, then cleared afterwards