Skip to content

feat(events): support preventDefault#1397

Closed
marclaval wants to merge 1 commit into
angular:masterfrom
marclaval:issue1039
Closed

feat(events): support preventDefault#1397
marclaval wants to merge 1 commit into
angular:masterfrom
marclaval:issue1039

Conversation

@marclaval
Copy link
Copy Markdown
Contributor

As per decision of #1039, the return value of the event handler should control whether or not preventDefault happens.

@marclaval marclaval force-pushed the issue1039 branch 2 times, most recently from 10b8214 to f0bd98c Compare April 16, 2015 17:02
marclaval added a commit to marclaval/angular that referenced this pull request Apr 16, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is always better to have positive names for vars. or this becomes confusing.

if(!dontPreventDefault) <== makes my brain explode.

How about allowDefaultBehavior?

@mhevery mhevery added the @lgtm label Apr 17, 2015
@mhevery
Copy link
Copy Markdown
Contributor

mhevery commented Apr 17, 2015

Merge after resolving my comment on var name.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 13, 2019
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.

4 participants