{"action":"created","issue":{"url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/89","labels_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/89/comments","events_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/89/events","html_url":"https://github.com/dangrossman/bootstrap-daterangepicker/issues/89","id":13487285,"number":89,"title":"Add a destructor","user":{"login":"sedenardi","id":4225973,"avatar_url":"https://avatars.githubusercontent.com/u/4225973?v=3","gravatar_id":"","url":"https://api.github.com/users/sedenardi","html_url":"https://github.com/sedenardi","followers_url":"https://api.github.com/users/sedenardi/followers","following_url":"https://api.github.com/users/sedenardi/following{/other_user}","gists_url":"https://api.github.com/users/sedenardi/gists{/gist_id}","starred_url":"https://api.github.com/users/sedenardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sedenardi/subscriptions","organizations_url":"https://api.github.com/users/sedenardi/orgs","repos_url":"https://api.github.com/users/sedenardi/repos","events_url":"https://api.github.com/users/sedenardi/events{/privacy}","received_events_url":"https://api.github.com/users/sedenardi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-04-22T15:19:19Z","updated_at":"2015-03-09T10:03:10Z","closed_at":"2013-07-30T04:55:19Z","body":"I've modified your code to add a destructor. You may want to consider putting this into your master branch.\r\n\r\ndestroy: function () {\r\n            this.element.off();\r\n            this.container.remove();\r\n            this.element.removeData(this.type);\r\n        },\r\n\r\nUse with \"$(element).data('daterangepicker').destroy()\""},"comment":{"url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/comments/77826919","html_url":"https://github.com/dangrossman/bootstrap-daterangepicker/issues/89#issuecomment-77826919","issue_url":"https://api.github.com/repos/dangrossman/bootstrap-daterangepicker/issues/89","id":77826919,"user":{"login":"DarkCompiled","id":5394451,"avatar_url":"https://avatars.githubusercontent.com/u/5394451?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkCompiled","html_url":"https://github.com/DarkCompiled","followers_url":"https://api.github.com/users/DarkCompiled/followers","following_url":"https://api.github.com/users/DarkCompiled/following{/other_user}","gists_url":"https://api.github.com/users/DarkCompiled/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkCompiled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkCompiled/subscriptions","organizations_url":"https://api.github.com/users/DarkCompiled/orgs","repos_url":"https://api.github.com/users/DarkCompiled/repos","events_url":"https://api.github.com/users/DarkCompiled/events{/privacy}","received_events_url":"https://api.github.com/users/DarkCompiled/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T10:03:10Z","updated_at":"2015-03-09T10:03:10Z","body":"Please, add a destructor.\r\nI'm having problems using your component with Angular. Changing from one view to another and then coming back makes your component odd. A destructor would solve the problem (I'm using one of my own).\r\n\r\nThis is what happens:\r\n![datarange-issue](https://cloud.githubusercontent.com/assets/5394451/6552962/694e40b8-c643-11e4-8180-0710c474d046.png)"}}