common-web icon indicating copy to clipboard operation
common-web copied to clipboard

Bind to events on document, so we can track elements added after initialization

Open josephwegner opened this issue 10 years ago • 1 comments

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.

josephwegner avatar Mar 04 '15 14:03 josephwegner

Agreed, sounds like something we should do.

joshed-io avatar Mar 04 '15 23:03 joshed-io