{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11301","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11301/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11301/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11301/events","html_url":"https://github.com/emberjs/ember.js/issues/11301","id":81933100,"number":11301,"title":"Is there a supported way to detect if a component is being used with a block?","user":{"login":"raycohen","id":20404,"avatar_url":"https://avatars.githubusercontent.com/u/20404?v=3","gravatar_id":"","url":"https://api.github.com/users/raycohen","html_url":"https://github.com/raycohen","followers_url":"https://api.github.com/users/raycohen/followers","following_url":"https://api.github.com/users/raycohen/following{/other_user}","gists_url":"https://api.github.com/users/raycohen/gists{/gist_id}","starred_url":"https://api.github.com/users/raycohen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raycohen/subscriptions","organizations_url":"https://api.github.com/users/raycohen/orgs","repos_url":"https://api.github.com/users/raycohen/repos","events_url":"https://api.github.com/users/raycohen/events{/privacy}","received_events_url":"https://api.github.com/users/raycohen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-28T13:45:52Z","updated_at":"2015-05-28T13:49:30Z","closed_at":null,"body":"this came up trying to get the [ember-radio-button](https://github.com/yapplabs/ember-radio-button) addon working with the ember 1.13 betas.\r\n\r\nI am [using](https://github.com/yapplabs/ember-radio-button/blob/master/addon/components/radio-button.js#L16) `if (this.get('template'))`  to detect if the component is being used with a block.  This is no longer working.\r\n\r\nSome jsbins that help demonstrate the behavior change:\r\n\r\nworking in ember 1.12:\r\nhttp://emberjs.jsbin.com/zihixaqaxo/2/edit?html,css,js,output\r\n\r\nnot working in beta:\r\nhttp://emberjs.jsbin.com/zihixaqaxo/3/edit?html,css,js,output"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/106318420","html_url":"https://github.com/emberjs/ember.js/issues/11301#issuecomment-106318420","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/11301","id":106318420,"user":{"login":"OrKoN","id":399150,"avatar_url":"https://avatars.githubusercontent.com/u/399150?v=3","gravatar_id":"","url":"https://api.github.com/users/OrKoN","html_url":"https://github.com/OrKoN","followers_url":"https://api.github.com/users/OrKoN/followers","following_url":"https://api.github.com/users/OrKoN/following{/other_user}","gists_url":"https://api.github.com/users/OrKoN/gists{/gist_id}","starred_url":"https://api.github.com/users/OrKoN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrKoN/subscriptions","organizations_url":"https://api.github.com/users/OrKoN/orgs","repos_url":"https://api.github.com/users/OrKoN/repos","events_url":"https://api.github.com/users/OrKoN/events{/privacy}","received_events_url":"https://api.github.com/users/OrKoN/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T13:49:30Z","updated_at":"2015-05-28T13:49:30Z","body":"@raycohen I think you should use `hasBlock` to check if there is a block http://emberjs.com/api/classes/Ember.Component.html#property_hasBlock \r\n\r\n`template` seems to be deprecated. http://emberjs.com/api/classes/Ember.Component.html#property_template"}}