Closed Johnius closed 8 years ago
@Johnius Thinking my PR #27 solves this for you.
@cpsubrian It looks working but I think you'll face problems when your class will get grow. I think still would be sweet to have @unbind
and use it on specific methods. Maybe you have some thoughts about why it might be good or bad—about your and my idea.
@Johnius I can't speak to your use case, but I'm always in one of three situations:
@autobind
on those methodsI would personally find a mix of @autobind
and @unbind
hard to follow/remember. But my main use-case is either React components or custom 'Model' classes. Both of these follow repeatable patterns.
I wonder what your use case is for a large class that wants a scattering of methods unbound. If I understood that better I could weigh in on it :smile:
see #27
Would be nice to have an ability to unbind some special functions from instance. Make it static.