Skip to content
/ noty Public

Pass event object to button click handlers.#235

Merged
needim merged 1 commit intoneedim:masterfrom
greenjoe:buttons-click-event-pass
Dec 25, 2014
Merged

Pass event object to button click handlers.#235
needim merged 1 commit intoneedim:masterfrom
greenjoe:buttons-click-event-pass

Conversation

@greenjoe
Copy link
Contributor

Button click handlers should have access to original event objects.
It is sometimes useful, for example to call .preventDefault().
This commit passes event object as an additional argument in the click handler call.
It shouldn't break any existing code.

Button click handlers should have access to original event objects.
It is sometimes useful, for example to call .preventDefault().
This commit passes event object as an additional argument in the click handler call.
It shouldn't break any existing code.
needim added a commit that referenced this pull request Dec 25, 2014
Pass event object to button click handlers.
@needim needim merged commit 06a8af9 into needim:master Dec 25, 2014
@needim
Copy link
Owner

needim commented Dec 25, 2014

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants