{"action":"created","issue":{"url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/8","labels_url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/8/comments","events_url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/8/events","html_url":"https://github.com/HenrikJoreteg/wildemitter/pull/8","id":29103636,"number":8,"title":"Add a `WildEmitter.mixin(<constructor>)` method for mixing emitter behaviour into a \"class\" more easily.","user":{"login":"latentflip","id":78225,"avatar_url":"https://avatars.githubusercontent.com/u/78225?v=3","gravatar_id":"","url":"https://api.github.com/users/latentflip","html_url":"https://github.com/latentflip","followers_url":"https://api.github.com/users/latentflip/followers","following_url":"https://api.github.com/users/latentflip/following{/other_user}","gists_url":"https://api.github.com/users/latentflip/gists{/gist_id}","starred_url":"https://api.github.com/users/latentflip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latentflip/subscriptions","organizations_url":"https://api.github.com/users/latentflip/orgs","repos_url":"https://api.github.com/users/latentflip/repos","events_url":"https://api.github.com/users/latentflip/events{/privacy}","received_events_url":"https://api.github.com/users/latentflip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-03-10T15:22:28Z","updated_at":"2015-10-12T20:41:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/pulls/8","html_url":"https://github.com/HenrikJoreteg/wildemitter/pull/8","diff_url":"https://github.com/HenrikJoreteg/wildemitter/pull/8.diff","patch_url":"https://github.com/HenrikJoreteg/wildemitter/pull/8.patch"},"body":"So I love WildEmitter, but I can literally never remember how to actually use it. And even when I read the docs I forget that I have to both inherit from a new Emitter, and do Emitter.call(this) in my constructor, I always forget one or the other.\r\n\r\nThis PR makes it as easy as\r\n\r\n```javascript\r\nvar Emitter = require('wildemitter');\r\n\r\nfunction Fruit () {\r\n  //My own constructor code\r\n}\r\n\r\nEmitter.mixin(Fruit)\r\n```\r\n\r\nAnd doesn't break backwards compatibility."},"comment":{"url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/comments/147514016","html_url":"https://github.com/HenrikJoreteg/wildemitter/pull/8#issuecomment-147514016","issue_url":"https://api.github.com/repos/HenrikJoreteg/wildemitter/issues/8","id":147514016,"user":{"login":"kohenkatz","id":88755,"avatar_url":"https://avatars.githubusercontent.com/u/88755?v=3","gravatar_id":"","url":"https://api.github.com/users/kohenkatz","html_url":"https://github.com/kohenkatz","followers_url":"https://api.github.com/users/kohenkatz/followers","following_url":"https://api.github.com/users/kohenkatz/following{/other_user}","gists_url":"https://api.github.com/users/kohenkatz/gists{/gist_id}","starred_url":"https://api.github.com/users/kohenkatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohenkatz/subscriptions","organizations_url":"https://api.github.com/users/kohenkatz/orgs","repos_url":"https://api.github.com/users/kohenkatz/repos","events_url":"https://api.github.com/users/kohenkatz/events{/privacy}","received_events_url":"https://api.github.com/users/kohenkatz/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T20:41:52Z","updated_at":"2015-10-12T20:41:52Z","body":":+1: I like this. It looks so much cleaner than the old way."}}