{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/793","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/793/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/793/events","html_url":"https://github.com/cytoscape/cytoscape.js/issues/793","id":53933893,"number":793,"title":"Cytoscape Leaking DOM?","user":{"login":"i2shar","id":608265,"avatar_url":"https://avatars.githubusercontent.com/u/608265?v=3","gravatar_id":"","url":"https://api.github.com/users/i2shar","html_url":"https://github.com/i2shar","followers_url":"https://api.github.com/users/i2shar/followers","following_url":"https://api.github.com/users/i2shar/following{/other_user}","gists_url":"https://api.github.com/users/i2shar/gists{/gist_id}","starred_url":"https://api.github.com/users/i2shar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i2shar/subscriptions","organizations_url":"https://api.github.com/users/i2shar/orgs","repos_url":"https://api.github.com/users/i2shar/repos","events_url":"https://api.github.com/users/i2shar/events{/privacy}","received_events_url":"https://api.github.com/users/i2shar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T00:21:55Z","updated_at":"2015-01-11T16:30:57Z","closed_at":null,"body":"Each time a cytoscape instance is created and destroyed, there are remnant DOM nodes added to the body that are not removed. They seem to correspond to the last node in the graph, \"George\" in this case.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/608265/5689516/2570feea-981b-11e4-952f-cf3c0c025ca7.png)\r\n\r\nHere's the plunker: http://run.plnkr.co/plunks/4vKxA6Lqlqm7DxiuE8At/ and code is at http://plnkr.co/edit/4vKxA6Lqlqm7DxiuE8At?p=info\r\n"},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/comments/69500315","html_url":"https://github.com/cytoscape/cytoscape.js/issues/793#issuecomment-69500315","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js/issues/793","id":69500315,"user":{"login":"markov00","id":1421091,"avatar_url":"https://avatars.githubusercontent.com/u/1421091?v=3","gravatar_id":"","url":"https://api.github.com/users/markov00","html_url":"https://github.com/markov00","followers_url":"https://api.github.com/users/markov00/followers","following_url":"https://api.github.com/users/markov00/following{/other_user}","gists_url":"https://api.github.com/users/markov00/gists{/gist_id}","starred_url":"https://api.github.com/users/markov00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markov00/subscriptions","organizations_url":"https://api.github.com/users/markov00/orgs","repos_url":"https://api.github.com/users/markov00/repos","events_url":"https://api.github.com/users/markov00/events{/privacy}","received_events_url":"https://api.github.com/users/markov00/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T16:30:57Z","updated_at":"2015-01-11T16:30:57Z","body":"Hi, I think I've found the problem and I've issued a PR. The div is used to calculate the dimension of each labels, but it's appended to the body and never removed during the destroy.\r\nI've proposed two way to solve it: removing the element during the destroy or appending the element into the cytoscape container. Either methods works correctly."}}