{"action":"created","issue":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/73","labels_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/73/comments","events_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/73/events","html_url":"https://github.com/jhuckaby/webcamjs/issues/73","id":72484739,"number":73,"title":"Webcam.on() only allows a single handler to be bound","user":{"login":"scurker","id":1062039,"avatar_url":"https://avatars.githubusercontent.com/u/1062039?v=3","gravatar_id":"","url":"https://api.github.com/users/scurker","html_url":"https://github.com/scurker","followers_url":"https://api.github.com/users/scurker/followers","following_url":"https://api.github.com/users/scurker/following{/other_user}","gists_url":"https://api.github.com/users/scurker/gists{/gist_id}","starred_url":"https://api.github.com/users/scurker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scurker/subscriptions","organizations_url":"https://api.github.com/users/scurker/orgs","repos_url":"https://api.github.com/users/scurker/repos","events_url":"https://api.github.com/users/scurker/events{/privacy}","received_events_url":"https://api.github.com/users/scurker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-01T17:59:00Z","updated_at":"2015-05-02T23:17:21Z","closed_at":"2015-05-02T20:15:57Z","body":"I discovered this when trying to bind multiple event handler functions to a single event, but it seems that the current version only allows a single event to be bound at a time.\r\n\r\n```javascript\r\nWebcam.on('live', function() {\r\n  // do something here with the camera\r\n});\r\n\r\n...\r\n\r\n// Located somewhere else in code\r\nWebcam.on('live', function() {\r\n  // do something else with the camera\r\n});\r\n```\r\n\r\nOnly the most recently set handler will actually fire when the event is created. This seems contrary to how events are typically handled in Javascript - and it would be nice if the could could handle multiple events being attached."},"comment":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/comments/98416581","html_url":"https://github.com/jhuckaby/webcamjs/issues/73#issuecomment-98416581","issue_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/73","id":98416581,"user":{"login":"scurker","id":1062039,"avatar_url":"https://avatars.githubusercontent.com/u/1062039?v=3","gravatar_id":"","url":"https://api.github.com/users/scurker","html_url":"https://github.com/scurker","followers_url":"https://api.github.com/users/scurker/followers","following_url":"https://api.github.com/users/scurker/following{/other_user}","gists_url":"https://api.github.com/users/scurker/gists{/gist_id}","starred_url":"https://api.github.com/users/scurker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scurker/subscriptions","organizations_url":"https://api.github.com/users/scurker/orgs","repos_url":"https://api.github.com/users/scurker/repos","events_url":"https://api.github.com/users/scurker/events{/privacy}","received_events_url":"https://api.github.com/users/scurker/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T23:17:21Z","updated_at":"2015-05-02T23:17:21Z","body":":+1: Thanks for hoping for this so quick!"}}