jayphelps / core-decorators

Library of stage-0 JavaScript decorators (aka ES2016/ES7 decorators but not accurate) inspired by languages that come with built-ins like @​override, @​deprecate, @​autobind, @​mixin and more. Popular with React/Angular, but is framework agnostic.
MIT License
4.51k stars 263 forks source link

Make autobind for classes configureable #83

Open Inoir opened 8 years ago

Inoir commented 8 years ago

I think there should be an optional parameter to exclude methods from autobind.

Good example: Using React You dont want to rebind all react-component methods.