{"action":"created","issue":{"url":"https://api.github.com/repos/js-lessons/stuff.js/issues/1","labels_url":"https://api.github.com/repos/js-lessons/stuff.js/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/js-lessons/stuff.js/issues/1/comments","events_url":"https://api.github.com/repos/js-lessons/stuff.js/issues/1/events","html_url":"https://github.com/js-lessons/stuff.js/pull/1","id":60158693,"number":1,"title":"Solution EventEmitter","user":{"login":"lush81","id":10638862,"avatar_url":"https://avatars.githubusercontent.com/u/10638862?v=3","gravatar_id":"","url":"https://api.github.com/users/lush81","html_url":"https://github.com/lush81","followers_url":"https://api.github.com/users/lush81/followers","following_url":"https://api.github.com/users/lush81/following{/other_user}","gists_url":"https://api.github.com/users/lush81/gists{/gist_id}","starred_url":"https://api.github.com/users/lush81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lush81/subscriptions","organizations_url":"https://api.github.com/users/lush81/orgs","repos_url":"https://api.github.com/users/lush81/repos","events_url":"https://api.github.com/users/lush81/events{/privacy}","received_events_url":"https://api.github.com/users/lush81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T21:06:12Z","updated_at":"2015-03-10T15:28:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/js-lessons/stuff.js/pulls/1","html_url":"https://github.com/js-lessons/stuff.js/pull/1","diff_url":"https://github.com/js-lessons/stuff.js/pull/1.diff","patch_url":"https://github.com/js-lessons/stuff.js/pull/1.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/js-lessons/stuff.js/issues/comments/78078026","html_url":"https://github.com/js-lessons/stuff.js/pull/1#issuecomment-78078026","issue_url":"https://api.github.com/repos/js-lessons/stuff.js/issues/1","id":78078026,"user":{"login":"dra1n","id":309593,"avatar_url":"https://avatars.githubusercontent.com/u/309593?v=3","gravatar_id":"","url":"https://api.github.com/users/dra1n","html_url":"https://github.com/dra1n","followers_url":"https://api.github.com/users/dra1n/followers","following_url":"https://api.github.com/users/dra1n/following{/other_user}","gists_url":"https://api.github.com/users/dra1n/gists{/gist_id}","starred_url":"https://api.github.com/users/dra1n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dra1n/subscriptions","organizations_url":"https://api.github.com/users/dra1n/orgs","repos_url":"https://api.github.com/users/dra1n/repos","events_url":"https://api.github.com/users/dra1n/events{/privacy}","received_events_url":"https://api.github.com/users/dra1n/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:28:58Z","updated_at":"2015-03-10T15:28:58Z","body":"Да, сейчас получше. Но subscriptions нужно убрать из EventEmitter.prototype. У тебя разные инстансы EventEmitter будут шарить объект subscriptions между собой. Это неправильно. subscriptions должен создаваться в конструкторе через this."}}