{"action":"created","issue":{"url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/31","labels_url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/31/comments","events_url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/31/events","html_url":"https://github.com/raptorjs/marko-widgets/issues/31","id":65583250,"number":31,"title":"remove widget references after widget has been destroyed","user":{"login":"zeligon","id":1749842,"avatar_url":"https://avatars.githubusercontent.com/u/1749842?v=3","gravatar_id":"","url":"https://api.github.com/users/zeligon","html_url":"https://github.com/zeligon","followers_url":"https://api.github.com/users/zeligon/followers","following_url":"https://api.github.com/users/zeligon/following{/other_user}","gists_url":"https://api.github.com/users/zeligon/gists{/gist_id}","starred_url":"https://api.github.com/users/zeligon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeligon/subscriptions","organizations_url":"https://api.github.com/users/zeligon/orgs","repos_url":"https://api.github.com/users/zeligon/repos","events_url":"https://api.github.com/users/zeligon/events{/privacy}","received_events_url":"https://api.github.com/users/zeligon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T01:45:19Z","updated_at":"2015-04-01T02:00:09Z","closed_at":null,"body":"assign the widget to NULL after the widget has been destroyed."},"comment":{"url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/comments/88311748","html_url":"https://github.com/raptorjs/marko-widgets/issues/31#issuecomment-88311748","issue_url":"https://api.github.com/repos/raptorjs/marko-widgets/issues/31","id":88311748,"user":{"login":"pedramphp","id":402815,"avatar_url":"https://avatars.githubusercontent.com/u/402815?v=3","gravatar_id":"","url":"https://api.github.com/users/pedramphp","html_url":"https://github.com/pedramphp","followers_url":"https://api.github.com/users/pedramphp/followers","following_url":"https://api.github.com/users/pedramphp/following{/other_user}","gists_url":"https://api.github.com/users/pedramphp/gists{/gist_id}","starred_url":"https://api.github.com/users/pedramphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedramphp/subscriptions","organizations_url":"https://api.github.com/users/pedramphp/orgs","repos_url":"https://api.github.com/users/pedramphp/repos","events_url":"https://api.github.com/users/pedramphp/events{/privacy}","received_events_url":"https://api.github.com/users/pedramphp/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T02:00:09Z","updated_at":"2015-04-01T02:00:09Z","body":"this is how we used to do with backbone, I guess marko widgets is missing to remove the `this` reference it self.\r\n\r\n```     \r\ndestroy: function(){\r\n\t\t\t//COMPLETELY UNBIND THE VIEW\r\n\t\t    this.undelegateEvents();\r\n\t\t    this.$el.removeData().unbind(); \r\n\r\n\t\t    //Remove view from DOM\r\n\t\t    this.remove();  \r\n\t\t    Backbone.View.prototype.remove.call(this);\r\n        }\r\n```"}}