You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a bug, just question and possible enhancement.
I want to write custom attribute for elements in list. This custom attribute attaches event handlers to elements and it's reasonable to use event delegation.
Source code exploration gives me EventManager.addEventListener method. I've tried to use this method and it works correctly for both attaching and detaching handlers.
But I see that aurelia-binding.d.ts file doesn't declare this method and I don't understand why. Is it unsafe to use?
The text was updated successfully, but these errors were encountered:
Good call- EventManager.addEventListener should be added to binding's public API. This method is definitely safe to use. Would you be interested in submitting a PR that adds this to the aurelia-binding.d.ts file in the src folder?
It's not a bug, just question and possible enhancement.
I want to write custom attribute for elements in list. This custom attribute attaches event handlers to elements and it's reasonable to use event delegation.
Source code exploration gives me
EventManager.addEventListener
method. I've tried to use this method and it works correctly for both attaching and detaching handlers.But I see that
aurelia-binding.d.ts
file doesn't declare this method and I don't understand why. Is it unsafe to use?The text was updated successfully, but these errors were encountered: