{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3624","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3624/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3624/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3624/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3624","id":129697749,"number":3624,"title":"Destroying elements (removing event listeners etc to prevent memory leaks in SPA)","user":{"login":"danr1979","id":4936852,"avatar_url":"https://avatars.githubusercontent.com/u/4936852?v=3","gravatar_id":"","url":"https://api.github.com/users/danr1979","html_url":"https://github.com/danr1979","followers_url":"https://api.github.com/users/danr1979/followers","following_url":"https://api.github.com/users/danr1979/following{/other_user}","gists_url":"https://api.github.com/users/danr1979/gists{/gist_id}","starred_url":"https://api.github.com/users/danr1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danr1979/subscriptions","organizations_url":"https://api.github.com/users/danr1979/orgs","repos_url":"https://api.github.com/users/danr1979/repos","events_url":"https://api.github.com/users/danr1979/events{/privacy}","received_events_url":"https://api.github.com/users/danr1979/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T08:07:51Z","updated_at":"2016-02-01T23:09:48Z","closed_at":"2016-02-01T23:09:48Z","body":"Hi.\r\n\r\nI am using SUI with Ember JS and each SUI element is being implemented as an Ember component.  However, in Ember we are creating single page applications and as a result we need to teardown jQuery-based elements once they are ready to be removed from the DOM to prevent memory leaks.\r\n\r\nDoes anyone know how this can be done in SUI?  I've found a reference to \"modules\" and a \"destroy\" function/setting but I can't get these to work.\r\n\r\nAny help that anyone could offer would be appreciated.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/178248113","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3624#issuecomment-178248113","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3624","id":178248113,"user":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T23:09:48Z","updated_at":"2016-02-01T23:09:48Z","body":"All javascript components have a destroy method\r\n\r\n`$('.ui.dropdown').dropdown('destroy')`\r\n\r\nWe also  have dedicated ember components. \r\nhttps://github.com/Semantic-Org/Semantic-UI-Ember"}}