{"action":"closed","issue":{"url":"https://api.github.com/repos/MichaelWDanko/day14/issues/1","repository_url":"https://api.github.com/repos/MichaelWDanko/day14","labels_url":"https://api.github.com/repos/MichaelWDanko/day14/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MichaelWDanko/day14/issues/1/comments","events_url":"https://api.github.com/repos/MichaelWDanko/day14/issues/1/events","html_url":"https://github.com/MichaelWDanko/day14/issues/1","id":141926912,"number":1,"title":"Duplicate messages","user":{"login":"MichaelWDanko","id":16723647,"avatar_url":"https://avatars.githubusercontent.com/u/16723647?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelWDanko","html_url":"https://github.com/MichaelWDanko","followers_url":"https://api.github.com/users/MichaelWDanko/followers","following_url":"https://api.github.com/users/MichaelWDanko/following{/other_user}","gists_url":"https://api.github.com/users/MichaelWDanko/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelWDanko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelWDanko/subscriptions","organizations_url":"https://api.github.com/users/MichaelWDanko/orgs","repos_url":"https://api.github.com/users/MichaelWDanko/repos","events_url":"https://api.github.com/users/MichaelWDanko/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelWDanko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T17:09:55Z","updated_at":"2016-03-18T19:22:54Z","closed_at":"2016-03-18T19:22:54Z","body":"When clicking on the refresh button, the JS is retrieving a copy of ALL messages and is appending them to the messages that are currently there. \r\n\r\nSolution: After the refresh button is clicked BUT before the new messages are retrieved, removeChild to erase the current messages."}}