{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/245","labels_url":"https://api.github.com/repos/aurelia/templating/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/245/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/245/events","html_url":"https://github.com/aurelia/templating/issues/245","id":125771992,"number":245,"title":"Enhance not initializing custom elements/attributes imported via require","user":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-09T17:55:52Z","updated_at":"2016-01-28T17:15:19Z","closed_at":"2016-01-09T18:00:38Z","body":"Plunker: http://plnkr.co/edit/7CyNhwEBharrG7vdbiYQ\r\n\r\nIn the plunker above, I have two buttons. The first button adds a `<red-square>` and a `<blue-square>` custom element to the DOM.\r\n\r\nThe second button calls enhance on the div containing the red and blue square. What I expect is `attached()` to be called on both custom elements (red and blue square custom element).\r\n\r\nThe blue square custom element is globalized via `globalResources('blue-square')` in `main.js`, and the red square custom element is imported via `<require>`. Enhance calls the lifecycle callbacks correctly on the blue square, but doesn't with the red square.\r\n\r\nShould this work?"},"comment":{"url":"https://api.github.com/repos/aurelia/templating/issues/comments/176288743","html_url":"https://github.com/aurelia/templating/issues/245#issuecomment-176288743","issue_url":"https://api.github.com/repos/aurelia/templating/issues/245","id":176288743,"user":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T17:15:19Z","updated_at":"2016-01-28T17:15:19Z","body":"Well...I had to really think about that and check the source code. I knew you could get it, but it's not an every day thing :)"}}