{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1270","labels_url":"https://api.github.com/repos/riot/riot/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1270/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1270/events","html_url":"https://github.com/riot/riot/issues/1270","id":111259447,"number":1270,"title":"Nested tags have undefined attributes","user":{"login":"ernestorocha","id":36022,"avatar_url":"https://avatars.githubusercontent.com/u/36022?v=3","gravatar_id":"","url":"https://api.github.com/users/ernestorocha","html_url":"https://github.com/ernestorocha","followers_url":"https://api.github.com/users/ernestorocha/followers","following_url":"https://api.github.com/users/ernestorocha/following{/other_user}","gists_url":"https://api.github.com/users/ernestorocha/gists{/gist_id}","starred_url":"https://api.github.com/users/ernestorocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernestorocha/subscriptions","organizations_url":"https://api.github.com/users/ernestorocha/orgs","repos_url":"https://api.github.com/users/ernestorocha/repos","events_url":"https://api.github.com/users/ernestorocha/events{/privacy}","received_events_url":"https://api.github.com/users/ernestorocha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riot/riot/labels/question","name":"question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-13T20:04:22Z","updated_at":"2015-11-03T22:03:53Z","closed_at":null,"body":"I have the following code:\r\n```javascript\r\nriot.mount('toptag', {store: store});\r\n\r\nriot.tag('toptag',\r\n  `\r\n    <nested-tag store=\"{opts.store}\"></nested-tag>\r\n  `,\r\n  function(opts) {\r\n  });\r\n\r\nriot.tag('nested-tag',\r\n  `\r\n    ...\r\n  `,\r\n  function(opts) {\r\n    console.log(opts.store);\r\n  });\r\n```\r\n\r\nWhat I think is happening is:\r\n\r\nEverything is mounted correctly, then the `update` event is triggered on `toptag` and propagated to its children, right ? Then the `nested-tag` constructor is called again, for me that is strange, shouldn't only the `update` event be triggered ?\r\nAnyway, the problem is, the second time the `nested-tag` is called the `store` attribute is `undefined`.\r\n\r\nWhat am I missing here ?\r\n"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/153503788","html_url":"https://github.com/riot/riot/issues/1270#issuecomment-153503788","issue_url":"https://api.github.com/repos/riot/riot/issues/1270","id":153503788,"user":{"login":"GianlucaGuarini","id":879612,"avatar_url":"https://avatars.githubusercontent.com/u/879612?v=3","gravatar_id":"","url":"https://api.github.com/users/GianlucaGuarini","html_url":"https://github.com/GianlucaGuarini","followers_url":"https://api.github.com/users/GianlucaGuarini/followers","following_url":"https://api.github.com/users/GianlucaGuarini/following{/other_user}","gists_url":"https://api.github.com/users/GianlucaGuarini/gists{/gist_id}","starred_url":"https://api.github.com/users/GianlucaGuarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GianlucaGuarini/subscriptions","organizations_url":"https://api.github.com/users/GianlucaGuarini/orgs","repos_url":"https://api.github.com/users/GianlucaGuarini/repos","events_url":"https://api.github.com/users/GianlucaGuarini/events{/privacy}","received_events_url":"https://api.github.com/users/GianlucaGuarini/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:03:53Z","updated_at":"2015-11-03T22:03:53Z","body":"@ernestorocha are you sure the problem is not somewhere else in your app? Your example looks ok to me"}}