a2234cde by Michael Richards

Add a default event handler configuration that passes a single extra argument co…

…ntaining the view models. [#161]
1 parent 3f76c4a6
...@@ -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 # -----------------
......