{"action":"closed","issue":{"url":"https://api.github.com/repos/Polymer/polymer-analyzer/issues/537","repository_url":"https://api.github.com/repos/Polymer/polymer-analyzer","labels_url":"https://api.github.com/repos/Polymer/polymer-analyzer/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer-analyzer/issues/537/comments","events_url":"https://api.github.com/repos/Polymer/polymer-analyzer/issues/537/events","html_url":"https://github.com/Polymer/polymer-analyzer/issues/537","id":211848202,"number":537,"title":"Analyzer not recognizing Polymer 2.0 elements that call `customElements.define(MyElem.is, MyElem)`","user":{"login":"rictic","id":1659,"avatar_url":"https://avatars0.githubusercontent.com/u/1659?v=3","gravatar_id":"","url":"https://api.github.com/users/rictic","html_url":"https://github.com/rictic","followers_url":"https://api.github.com/users/rictic/followers","following_url":"https://api.github.com/users/rictic/following{/other_user}","gists_url":"https://api.github.com/users/rictic/gists{/gist_id}","starred_url":"https://api.github.com/users/rictic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rictic/subscriptions","organizations_url":"https://api.github.com/users/rictic/orgs","repos_url":"https://api.github.com/users/rictic/repos","events_url":"https://api.github.com/users/rictic/events{/privacy}","received_events_url":"https://api.github.com/users/rictic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-04T02:33:22Z","updated_at":"2017-03-13T18:22:57Z","closed_at":"2017-03-13T18:22:57Z","body":"This came up in the cli's integration tests, as `init` generates code like:\r\n\r\n```html\r\n<link rel=\"import\" href=\"../polymer/polymer.html\">\r\n\r\n<!--\r\n`my-app`\r\n\r\n\r\n@demo demo/index.html\r\n-->\r\n\r\n<dom-module id=\"my-app\">\r\n  <template>\r\n    <style>\r\n      :host {\r\n        display: block;\r\n      }\r\n    </style>\r\n    <h2>Hello [[prop1]]</h2>\r\n  </template>\r\n\r\n  <script>\r\n    class MyElement extends Polymer.Element {\r\n      static get is() { return 'my-app'; }\r\n      static get config() {\r\n        return {\r\n          properties: {\r\n            prop1: {\r\n              type: String,\r\n              value: 'my-app'\r\n            }\r\n          }\r\n        };\r\n      }\r\n    }\r\n\r\n    window.customElements.define(MyElement.is, MyElement);\r\n  </script>\r\n</dom-module>\r\n\r\n<my-app></my-app>\r\n```\r\n\r\nThe linter warns about that last `<my-app></my-app>`"}}
{"actor":{"display_login":"rictic"}}