Only look for formatters on the view's formatters object, not the target object. [Regresses #38]
Showing
1 changed file
with
1 additions
and
5 deletions
... | @@ -63,11 +63,7 @@ class Rivets.Binding | ... | @@ -63,11 +63,7 @@ class Rivets.Binding |
63 | for formatter in @formatters | 63 | for formatter in @formatters |
64 | args = formatter.split /\s+/ | 64 | args = formatter.split /\s+/ |
65 | id = args.shift() | 65 | id = args.shift() |
66 | 66 | formatter = @view.formatters[id] | |
67 | formatter = if @model?[id] instanceof Function | ||
68 | @model[id] | ||
69 | else | ||
70 | @view.formatters[id] | ||
71 | 67 | ||
72 | if formatter?.read instanceof Function | 68 | if formatter?.read instanceof Function |
73 | value = formatter.read value, args... | 69 | value = formatter.read value, args... | ... | ... |
-
Please register or sign in to post a comment