bind-handler
Bind event handlers to this less verbose
Install
$ npm install bind-handler
Usage
var bindHandler = ; { ; } { // handler-prefix methods will be auto bound to this // Just like this.handleClick = this.handleClick.bind(this) } { // other methods will not be auto bound to this }//=>
License
MIT © C.T. Lin