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
Thanks for creating this project. I see that there has been at least one fork that added React specific filters when choosing which methods to bind. I'd really like to make this a more general purpose mechanism. For example, if you just wanted to bind all methods that started with the word handle which is the convention that I use for event handler methods in React apps. I propose:
Adding an optional filter method parameter that allows custom filtering of the bind
Adding a predefined filter function to exclude standard React methods.
Neither of these additions would affect current users in any way. If I prepared a PR would you be interested in merging it?
The text was updated successfully, but these errors were encountered:
Sorry for the long response here. I created a PR, but I felt it was a bit too much as I basically rewrote the library in ES6 with a different test tool. So I create a new package, auto-bind2 based on your excellent work.
Thanks for creating this project. I see that there has been at least one fork that added React specific filters when choosing which methods to bind. I'd really like to make this a more general purpose mechanism. For example, if you just wanted to bind all methods that started with the word
handle
which is the convention that I use for event handler methods in React apps. I propose:Neither of these additions would affect current users in any way. If I prepared a PR would you be interested in merging it?
The text was updated successfully, but these errors were encountered: