Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added currentTarget function #34

Merged
merged 1 commit into from Aug 13, 2015
Merged

Conversation

jellehermsen
Copy link
Contributor

I found myself in a situation in which I needed the currentTarget function. When you use onDelegate to add click events to future tags you may need currentTarget when your click events is triggered by a child element. In that case delegateTarget points to the parent element in which the newly generated elements are found (for example "body"). You could of course use parentSelector to find the parent with the right selector to which the event is bound, but simply using currentTarget is easier.

@bergmark
Copy link
Member

Hi @jellehermsen,

Sorry for the delay on this. This looks great, I'll release it straight away.

bergmark added a commit that referenced this pull request Aug 13, 2015
Added currentTarget function
@bergmark bergmark merged commit 755367c into faylang:master Aug 13, 2015
@bergmark
Copy link
Member

@jellehermsen
Copy link
Contributor Author

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.

None yet

2 participants