common-web
common-web copied to clipboard
Bind to events on document, so we can track elements added after initialization
The new standard for jQuery is to use:
$(document).on('click', 'selector', function() {});
I know that the desire is to get away from jQuery, but even once we do that we are going to want to bind to document events, rather than element-specific events.
Agreed, sounds like something we should do.