Skip to content

Commit

Permalink
When triggering an event through a stub view, propagate any arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gga committed Jan 14, 2013
1 parent 9b829c4 commit b0e7c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/calatrava/templates/kernel/spec/stubView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ stubView =
create: (name) ->
boundEvents: {}
fieldValues: {}
trigger: (event) ->
@boundEvents[event]()
trigger: (event, args...) ->
@boundEvents[event](args...)

bind: (event, handler) ->
@boundEvents[event] = handler
Expand Down

0 comments on commit b0e7c87

Please sign in to comment.