{"action":"created","issue":{"url":"https://api.github.com/repos/coopernurse/node-pool/issues/114","labels_url":"https://api.github.com/repos/coopernurse/node-pool/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/coopernurse/node-pool/issues/114/comments","events_url":"https://api.github.com/repos/coopernurse/node-pool/issues/114/events","html_url":"https://github.com/coopernurse/node-pool/pull/114","id":125827018,"number":114,"title":"Make Pool a class, put methods on prototype","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-10T15:45:15Z","updated_at":"2016-01-10T16:20:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coopernurse/node-pool/pulls/114","html_url":"https://github.com/coopernurse/node-pool/pull/114","diff_url":"https://github.com/coopernurse/node-pool/pull/114.diff","patch_url":"https://github.com/coopernurse/node-pool/pull/114.patch"},"body":"Closes #111\r\n\r\nI made Pool and PriorityQueue a proper class, all variables are now private properties and all methods sit on the prototype. I also adapted the README to show the usage with `new Pool()` as the recommended use, but calling it without `new` is still supported.\r\n\r\nUnfortunately, I could not run the tests because of the ancient expresso. I will therefor just open this PR and see what Travis CI says."},"comment":{"url":"https://api.github.com/repos/coopernurse/node-pool/issues/comments/170364549","html_url":"https://github.com/coopernurse/node-pool/pull/114#issuecomment-170364549","issue_url":"https://api.github.com/repos/coopernurse/node-pool/issues/114","id":170364549,"user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T16:20:59Z","updated_at":"2016-01-10T16:20:59Z","body":"`var self = this` is driving me nuts"}}