{"action":"opened","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1990","repository_url":"https://api.github.com/repos/riot/riot","labels_url":"https://api.github.com/repos/riot/riot/issues/1990/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1990/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1990/events","html_url":"https://github.com/riot/riot/issues/1990","id":178498573,"number":1990,"title":"Undefined opts when use yield","user":{"login":"syuilo","id":4439005,"avatar_url":"https://avatars.githubusercontent.com/u/4439005?v=3","gravatar_id":"","url":"https://api.github.com/users/syuilo","html_url":"https://github.com/syuilo","followers_url":"https://api.github.com/users/syuilo/followers","following_url":"https://api.github.com/users/syuilo/following{/other_user}","gists_url":"https://api.github.com/users/syuilo/gists{/gist_id}","starred_url":"https://api.github.com/users/syuilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syuilo/subscriptions","organizations_url":"https://api.github.com/users/syuilo/orgs","repos_url":"https://api.github.com/users/syuilo/repos","events_url":"https://api.github.com/users/syuilo/events{/privacy}","received_events_url":"https://api.github.com/users/syuilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T01:11:38Z","updated_at":"2016-09-22T01:11:38Z","closed_at":null,"body":"When use yield, value of `this.opts` will be `undefined`.\r\n\r\n**This bug only occurs on v2.6.2.**\r\n\r\n```html\r\n<my-tag>\r\n  <my-container>\r\n    <my-x message={ message }></my-x>\r\n  </my-container>\r\n\r\n  <script>\r\n    this.message = 'hello there'\r\n  </script>\r\n</my-tag>\r\n```\r\n\r\n```html\r\n<my-container>\r\n  <yield />\r\n</my-container>\r\n```\r\n\r\n```html\r\n<my-x>\r\n  <h1>{ message }</h1>\r\n\r\n  <script>\r\n    this.message = this.opts.message // <- undefined\r\n\r\n  /*\r\n    console.log(this.opts)\r\n      => { message: undefined }\r\n  */\r\n  </script>\r\n</my-x>\r\n```\r\n\r\n**Code**\r\n[http://plnkr.co/edit/ffnPUvlfqkiPmN8G3Da3?p=info](http://plnkr.co/edit/ffnPUvlfqkiPmN8G3Da3?p=info)\r\n\r\nRiot: 2.6.2\r\n\r\n  - [ ] Question\r\n  - [x] Bug\r\n  - [ ] Discussion\r\n  - [ ] Feature request\r\n  - [ ] Tip\r\n  - [ ] Enhancement\r\n  - [ ] Performance\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"syuilo"}}