Add a default event handler configuration that passes a single extra argument co…
…ntaining the view models. [#161]
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -441,6 +441,8 @@ Rivets.binders = | ... | @@ -441,6 +441,8 @@ Rivets.binders = |
441 | # overridden globally or local to a `Rivets.View` instance. | 441 | # overridden globally or local to a `Rivets.View` instance. |
442 | Rivets.config = | 442 | Rivets.config = |
443 | preloadData: true | 443 | preloadData: true |
444 | handler: (fn, context, ev, binding) -> | ||
445 | fn.call context, ev, binding.view.models | ||
444 | 446 | ||
445 | # Rivets.formatters | 447 | # Rivets.formatters |
446 | # ----------------- | 448 | # ----------------- | ... | ... |
-
Please register or sign in to post a comment