2a5c9d9d by Michael Richards

Only look for formatters on the view's formatters object, not the target object. [Regresses #38]

1 parent fbedeaab
......@@ -63,11 +63,7 @@ class Rivets.Binding
for formatter in @formatters
args = formatter.split /\s+/
id = args.shift()
formatter = if @model?[id] instanceof Function
@model[id]
else
@view.formatters[id]
formatter = @view.formatters[id]
if formatter?.read instanceof Function
value = formatter.read value, args...
......