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
Add more ways to specify the base element #18
Conversation
I like that @bfred-it. Can you add tests and docs? |
Done. However I'm not great at mocha tests. |
Just started reviewing :) |
All merged! |
Thanks for the prompt review and publish! |
I published a minor release since it didn't break the API ;) |
I noticed the code you wrote on that other pull request. It was written in ES6 and it was much easier to understand. What do you think of replacing Browserify with Webpack and adding Babel to transpile? |
Created an issue to record: #22 ;) |
3 new ways:
$('.base').on('click', '.inner', callback)
element
, defaults to global delegation:delegate('.inner', 'click', callback)
It'd need tests and docs, but it's a start for discussion.