Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix(event): fix #667, eventHandler should return result #682

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

JiaLiPassion
Copy link
Collaborator

fix #667,
now we wrap the onProperty such as onclick, onsubmit with wrapFn, but wrapFn did not return the returnValue from eventHandler, currently we call event.preventDefault if the original eventHandler return false, but sometimes, user may need the return value to process other logic.

@mhevery mhevery merged commit 5c4e24d into angular:master Mar 17, 2017
@JiaLiPassion JiaLiPassion deleted the issue-667 branch March 19, 2017 02:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrapper function doesn't return orignal function's result
3 participants