{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/2141","labels_url":"https://api.github.com/repos/meteor/meteor/issues/2141/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/2141/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/2141/events","html_url":"https://github.com/meteor/meteor/issues/2141","id":33329218,"number":2141,"title":"Need a way to access the DOM before a template is destroyed","user":{"login":"avital","id":37586,"avatar_url":"https://avatars.githubusercontent.com/u/37586?v=3","gravatar_id":"","url":"https://api.github.com/users/avital","html_url":"https://github.com/avital","followers_url":"https://api.github.com/users/avital/followers","following_url":"https://api.github.com/users/avital/following{/other_user}","gists_url":"https://api.github.com/users/avital/gists{/gist_id}","starred_url":"https://api.github.com/users/avital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avital/subscriptions","organizations_url":"https://api.github.com/users/avital/orgs","repos_url":"https://api.github.com/users/avital/repos","events_url":"https://api.github.com/users/avital/events{/privacy}","received_events_url":"https://api.github.com/users/avital/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/confirmed","name":"confirmed","color":"e10c02"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Blaze","name":"Project:Blaze","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-05-12T17:33:36Z","updated_at":"2015-09-17T18:16:28Z","closed_at":null,"body":"The main use-case is a jQuery plugin that's initialized in the `rendered` callback. You can't clear it in the `destroyed` callback since the DOM is no longer available then. We should either make it available, or add a new `beforeDestroyed` callback.\r\n\r\nAn example of a particular use-case is discussed here: https://groups.google.com/forum/#!topic/meteor-talk/XJCzctKR-_Q"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/141171560","html_url":"https://github.com/meteor/meteor/issues/2141#issuecomment-141171560","issue_url":"https://api.github.com/repos/meteor/meteor/issues/2141","id":141171560,"user":{"login":"frozeman","id":232662,"avatar_url":"https://avatars.githubusercontent.com/u/232662?v=3","gravatar_id":"","url":"https://api.github.com/users/frozeman","html_url":"https://github.com/frozeman","followers_url":"https://api.github.com/users/frozeman/followers","following_url":"https://api.github.com/users/frozeman/following{/other_user}","gists_url":"https://api.github.com/users/frozeman/gists{/gist_id}","starred_url":"https://api.github.com/users/frozeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frozeman/subscriptions","organizations_url":"https://api.github.com/users/frozeman/orgs","repos_url":"https://api.github.com/users/frozeman/repos","events_url":"https://api.github.com/users/frozeman/events{/privacy}","received_events_url":"https://api.github.com/users/frozeman/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T18:16:28Z","updated_at":"2015-09-17T18:16:28Z","body":"You should be aware, that the objects you log in the console can be mutated, even after you logged them."}}