Pass the @options.bindContext into functions that are evaluated during
Binding::set.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -55,7 +55,7 @@ class Rivets.Binding | ... | @@ -55,7 +55,7 @@ class Rivets.Binding |
55 | # with the suplied value formatted. | 55 | # with the suplied value formatted. |
56 | set: (value) => | 56 | set: (value) => |
57 | value = if value instanceof Function and !@binder.function | 57 | value = if value instanceof Function and !@binder.function |
58 | @formattedValue value.call @model | 58 | @formattedValue value.call @model, @options.bindContext |
59 | else | 59 | else |
60 | @formattedValue value | 60 | @formattedValue value |
61 | 61 | ... | ... |
-
Please register or sign in to post a comment