{"action":"created","issue":{"url":"https://api.github.com/repos/madrobby/keymaster/issues/148","labels_url":"https://api.github.com/repos/madrobby/keymaster/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/madrobby/keymaster/issues/148/comments","events_url":"https://api.github.com/repos/madrobby/keymaster/issues/148/events","html_url":"https://github.com/madrobby/keymaster/issues/148","id":73326059,"number":148,"title":"Error when using keymaster in react.js component","user":{"login":"Dharmoslap","id":3543614,"avatar_url":"https://avatars.githubusercontent.com/u/3543614?v=3","gravatar_id":"","url":"https://api.github.com/users/Dharmoslap","html_url":"https://github.com/Dharmoslap","followers_url":"https://api.github.com/users/Dharmoslap/followers","following_url":"https://api.github.com/users/Dharmoslap/following{/other_user}","gists_url":"https://api.github.com/users/Dharmoslap/gists{/gist_id}","starred_url":"https://api.github.com/users/Dharmoslap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dharmoslap/subscriptions","organizations_url":"https://api.github.com/users/Dharmoslap/orgs","repos_url":"https://api.github.com/users/Dharmoslap/repos","events_url":"https://api.github.com/users/Dharmoslap/events{/privacy}","received_events_url":"https://api.github.com/users/Dharmoslap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T14:13:29Z","updated_at":"2015-05-06T18:09:16Z","closed_at":null,"body":"I'm using keymaster.js inside react.js component like this: \r\n\r\n```\r\ncomponentDidMount: function () {\r\n        key('esc', this.close());\r\n    },\r\n```\r\n\r\nAnd it creates an error:\r\n**Uncaught TypeError: handler.method is not a function, line 106**"},"comment":{"url":"https://api.github.com/repos/madrobby/keymaster/issues/comments/99556507","html_url":"https://github.com/madrobby/keymaster/issues/148#issuecomment-99556507","issue_url":"https://api.github.com/repos/madrobby/keymaster/issues/148","id":99556507,"user":{"login":"danott","id":185476,"avatar_url":"https://avatars.githubusercontent.com/u/185476?v=3","gravatar_id":"","url":"https://api.github.com/users/danott","html_url":"https://github.com/danott","followers_url":"https://api.github.com/users/danott/followers","following_url":"https://api.github.com/users/danott/following{/other_user}","gists_url":"https://api.github.com/users/danott/gists{/gist_id}","starred_url":"https://api.github.com/users/danott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danott/subscriptions","organizations_url":"https://api.github.com/users/danott/orgs","repos_url":"https://api.github.com/users/danott/repos","events_url":"https://api.github.com/users/danott/events{/privacy}","received_events_url":"https://api.github.com/users/danott/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T18:09:16Z","updated_at":"2015-05-06T18:09:16Z","body":"You're calling the function, and passing the result as the argument, instead of passing the function itself.\r\n\r\n```javascript\r\ncomponentDidMount: function () {\r\n  key('esc', this.close.bind(this));\r\n},\r\n```"}}