{"action":"created","issue":{"url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/243","repository_url":"https://api.github.com/repos/Irrelon/ForerunnerDB","labels_url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/243/comments","events_url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/243/events","html_url":"https://github.com/Irrelon/ForerunnerDB/issues/243","id":331912855,"node_id":"MDU6SXNzdWUzMzE5MTI4NTU=","number":243,"title":"Adding event listener with an ID does not work","user":{"login":"Ulkuurz","id":10021981,"node_id":"MDQ6VXNlcjEwMDIxOTgx","avatar_url":"https://avatars1.githubusercontent.com/u/10021981?v=4","gravatar_id":"","url":"https://api.github.com/users/Ulkuurz","html_url":"https://github.com/Ulkuurz","followers_url":"https://api.github.com/users/Ulkuurz/followers","following_url":"https://api.github.com/users/Ulkuurz/following{/other_user}","gists_url":"https://api.github.com/users/Ulkuurz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ulkuurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ulkuurz/subscriptions","organizations_url":"https://api.github.com/users/Ulkuurz/orgs","repos_url":"https://api.github.com/users/Ulkuurz/repos","events_url":"https://api.github.com/users/Ulkuurz/events{/privacy}","received_events_url":"https://api.github.com/users/Ulkuurz/received_events","type":"User","site_admin":false},"labels":[{"id":331236950,"node_id":"MDU6TGFiZWwzMzEyMzY5NTA=","url":"https://api.github.com/repos/Irrelon/ForerunnerDB/labels/answered","name":"answered","color":"009800","default":false},{"id":79238332,"node_id":"MDU6TGFiZWw3OTIzODMzMg==","url":"https://api.github.com/repos/Irrelon/ForerunnerDB/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-13T09:26:55Z","updated_at":"2018-06-13T10:12:50Z","closed_at":null,"author_association":"NONE","body":"When adding an event listener with an ID the passed event function is never run.\r\nI'm trying to add a temporary event handler and remove it once no longer needed.\r\nI have multiple events for the event type and need to remove a particular listener by id.\r\n\r\nBased on this API, it should be supported.\r\nhttp://forerunnerdb.com/source/doc/Events.html#on\r\n\r\n\r\n```\r\nvar col = db.collection('test');\r\ncol.on(\"insert\", 1, () => console.log(\"INSERTED\"));\r\ncol.on(\"insert\", () => console.log(\"INSERTED.2\"));\r\n\r\ncol.insert({name: 'John Doe'});\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/10021981/41342172-deba538c-6efb-11e8-9b29-d6eedf64e0aa.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/comments/396887226","html_url":"https://github.com/Irrelon/ForerunnerDB/issues/243#issuecomment-396887226","issue_url":"https://api.github.com/repos/Irrelon/ForerunnerDB/issues/243","id":396887226,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njg4NzIyNg==","user":{"login":"Ulkuurz","id":10021981,"node_id":"MDQ6VXNlcjEwMDIxOTgx","avatar_url":"https://avatars1.githubusercontent.com/u/10021981?v=4","gravatar_id":"","url":"https://api.github.com/users/Ulkuurz","html_url":"https://github.com/Ulkuurz","followers_url":"https://api.github.com/users/Ulkuurz/followers","following_url":"https://api.github.com/users/Ulkuurz/following{/other_user}","gists_url":"https://api.github.com/users/Ulkuurz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ulkuurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ulkuurz/subscriptions","organizations_url":"https://api.github.com/users/Ulkuurz/orgs","repos_url":"https://api.github.com/users/Ulkuurz/repos","events_url":"https://api.github.com/users/Ulkuurz/events{/privacy}","received_events_url":"https://api.github.com/users/Ulkuurz/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T10:12:50Z","updated_at":"2018-06-13T10:12:50Z","author_association":"NONE","body":"Oh, the ID here is the document._id? I thought it was a listener ID.\r\nThis then works according to spec:\r\n\r\n![image](https://user-images.githubusercontent.com/10021981/41345099-02c58290-6f03-11e8-9436-571f57931fe6.png)\r\n"}}
{"actor":{"display_login":"Ulkuurz"}}