{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10869","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10869/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10869/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10869/events","html_url":"https://github.com/emberjs/ember.js/issues/10869","id":67970356,"number":10869,"title":"Ember.View is not removing observers after destroy","user":{"login":"tahaozket","id":668860,"avatar_url":"https://avatars.githubusercontent.com/u/668860?v=3","gravatar_id":"","url":"https://api.github.com/users/tahaozket","html_url":"https://github.com/tahaozket","followers_url":"https://api.github.com/users/tahaozket/followers","following_url":"https://api.github.com/users/tahaozket/following{/other_user}","gists_url":"https://api.github.com/users/tahaozket/gists{/gist_id}","starred_url":"https://api.github.com/users/tahaozket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahaozket/subscriptions","organizations_url":"https://api.github.com/users/tahaozket/orgs","repos_url":"https://api.github.com/users/tahaozket/repos","events_url":"https://api.github.com/users/tahaozket/events{/privacy}","received_events_url":"https://api.github.com/users/tahaozket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-12T22:59:29Z","updated_at":"2015-07-14T01:19:58Z","closed_at":"2015-07-14T01:19:58Z","body":"I noticed different behaviour after 1.7 to 1.11 migration. I am observing a controller property inside Ember.View like:\r\n\r\n```javascript\r\nexport default Ember.View.extend({\r\n\tstepChanged : function () {\r\n\t}.observes(\"controller.step\")\r\n})\r\n```\r\n\r\nWhen I change the route state willDestroyElement method is being called but Ember is not removing observer. Because of that, when I open the same view again, stepChanged method is being called two times. If I do same thing again, stepChanged method is being called three times.\r\n\r\nI need to add removeObserver inside willDestroyElement to work properly.\r\n\r\n```javascript\r\nwillDestroyElement : function() {\r\n\tthis.removeObserver(\"controller.step\");\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/121105342","html_url":"https://github.com/emberjs/ember.js/issues/10869#issuecomment-121105342","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10869","id":121105342,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T01:19:58Z","updated_at":"2015-07-14T01:19:58Z","body":"I am unable to reproduce in 1.13.3 or 2.0.  Much work specifically around view/component life-cycle cleanup and leaks have been fixed.\r\n\r\nIf someone is able to demonstrate this, please provide a demo that demonstrates this and I will gladly reopen."}}