c4816f9a by Adam Heath

Pass the @options.bindContext into functions that are evaluated during

Binding::set.
1 parent 724b6640
...@@ -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
......