{"action":"opened","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11186","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11186/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11186/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11186/events","html_url":"https://github.com/emberjs/ember.js/issues/11186","id":77009924,"number":11186,"title":"[1.13-beta.1] rerendering component after changing layout fails.","user":{"login":"masda70","id":3266573,"avatar_url":"https://avatars.githubusercontent.com/u/3266573?v=3","gravatar_id":"","url":"https://api.github.com/users/masda70","html_url":"https://github.com/masda70","followers_url":"https://api.github.com/users/masda70/followers","following_url":"https://api.github.com/users/masda70/following{/other_user}","gists_url":"https://api.github.com/users/masda70/gists{/gist_id}","starred_url":"https://api.github.com/users/masda70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masda70/subscriptions","organizations_url":"https://api.github.com/users/masda70/orgs","repos_url":"https://api.github.com/users/masda70/repos","events_url":"https://api.github.com/users/masda70/events{/privacy}","received_events_url":"https://api.github.com/users/masda70/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-16T10:53:37Z","updated_at":"2015-05-16T10:53:37Z","closed_at":null,"body":"I have the following component definition (details omitted):\r\n\r\n```\r\nimport Ember from 'ember';\r\n\r\nvar processRaw = function(raw){\r\n   [...]\r\n  return someTemplateContent;\r\n};\r\n\r\nvar Component = Ember.Component.extend({\r\n  raw: '',\r\n\r\n  updateLayout: function() {\r\n    var raw = processRaw(this.get('raw') || '');\r\n\r\n    var layout =  Ember.HTMLBars.compile(raw);\r\n\r\n    this.set('layout', layout);\r\n    this.rerender();\r\n  },\r\n\r\n  observeRaw: function() {\r\n    Ember.run.debounce(this, this.updateLayout, 250);\r\n  }.observes(\"raw\")\r\n});\r\n\r\nexport default Component;\r\n```\r\n\r\nThe component dynamically changes its layout based on the value of its `raw` attribute.\r\n\r\nIt works as expected with Ember 1.12.0. With Ember 1.13-beta.1, the `updateLayout` method executes fine (no error is thrown), but the component renders nothing."}}