{"action":"created","issue":{"url":"https://api.github.com/repos/wetfish/basic/issues/27","repository_url":"https://api.github.com/repos/wetfish/basic","labels_url":"https://api.github.com/repos/wetfish/basic/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/wetfish/basic/issues/27/comments","events_url":"https://api.github.com/repos/wetfish/basic/issues/27/events","html_url":"https://github.com/wetfish/basic/issues/27","id":102726324,"number":27,"title":"Functions that modify elements should check if nodes exist","user":{"login":"itsrachelfish","id":1670549,"avatar_url":"https://avatars.githubusercontent.com/u/1670549?v=3","gravatar_id":"","url":"https://api.github.com/users/itsrachelfish","html_url":"https://github.com/itsrachelfish","followers_url":"https://api.github.com/users/itsrachelfish/followers","following_url":"https://api.github.com/users/itsrachelfish/following{/other_user}","gists_url":"https://api.github.com/users/itsrachelfish/gists{/gist_id}","starred_url":"https://api.github.com/users/itsrachelfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsrachelfish/subscriptions","organizations_url":"https://api.github.com/users/itsrachelfish/orgs","repos_url":"https://api.github.com/users/itsrachelfish/repos","events_url":"https://api.github.com/users/itsrachelfish/events{/privacy}","received_events_url":"https://api.github.com/users/itsrachelfish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wetfish/basic/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/wetfish/basic/labels/enhancement","name":"enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T07:29:26Z","updated_at":"2016-04-27T07:13:35Z","closed_at":null,"body":"If a function modifies the DOM using a user provided element, the function should check if the element exists before cloning it. For example, **append** and **prepend** currently always clone an element before putting it on the page. This is convenient when adding an element to the page multiple times, but it can be annoying when trying to bind events.\r\n\r\nThis applies to ```.append()```, ```.prepend()```, ```.html()```, and ```.replace()```\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/Node/contains"},"comment":{"url":"https://api.github.com/repos/wetfish/basic/issues/comments/214990797","html_url":"https://github.com/wetfish/basic/issues/27#issuecomment-214990797","issue_url":"https://api.github.com/repos/wetfish/basic/issues/27","id":214990797,"user":{"login":"itsrachelfish","id":1670549,"avatar_url":"https://avatars.githubusercontent.com/u/1670549?v=3","gravatar_id":"","url":"https://api.github.com/users/itsrachelfish","html_url":"https://github.com/itsrachelfish","followers_url":"https://api.github.com/users/itsrachelfish/followers","following_url":"https://api.github.com/users/itsrachelfish/following{/other_user}","gists_url":"https://api.github.com/users/itsrachelfish/gists{/gist_id}","starred_url":"https://api.github.com/users/itsrachelfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsrachelfish/subscriptions","organizations_url":"https://api.github.com/users/itsrachelfish/orgs","repos_url":"https://api.github.com/users/itsrachelfish/repos","events_url":"https://api.github.com/users/itsrachelfish/events{/privacy}","received_events_url":"https://api.github.com/users/itsrachelfish/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T07:13:35Z","updated_at":"2016-04-27T07:13:35Z","body":":+1: this just tripped me up again in a new project, it's pretty annoying"}}