{"action":"closed","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/2730","repository_url":"https://api.github.com/repos/Polymer/polymer","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/2730/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/2730/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/2730/events","html_url":"https://github.com/Polymer/polymer/issues/2730","id":116730187,"number":2730,"title":"Check if an element has been registered","user":{"login":"felixzapata","id":997038,"avatar_url":"https://avatars0.githubusercontent.com/u/997038?v=4","gravatar_id":"","url":"https://api.github.com/users/felixzapata","html_url":"https://github.com/felixzapata","followers_url":"https://api.github.com/users/felixzapata/followers","following_url":"https://api.github.com/users/felixzapata/following{/other_user}","gists_url":"https://api.github.com/users/felixzapata/gists{/gist_id}","starred_url":"https://api.github.com/users/felixzapata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixzapata/subscriptions","organizations_url":"https://api.github.com/users/felixzapata/orgs","repos_url":"https://api.github.com/users/felixzapata/repos","events_url":"https://api.github.com/users/felixzapata/events{/privacy}","received_events_url":"https://api.github.com/users/felixzapata/received_events","type":"User","site_admin":false},"labels":[{"id":438484038,"url":"https://api.github.com/repos/Polymer/polymer/labels/1.x","name":"1.x","color":"b60205","default":false},{"id":12296109,"url":"https://api.github.com/repos/Polymer/polymer/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":118319128,"url":"https://api.github.com/repos/Polymer/polymer/labels/p3","name":"p3","color":"cace85","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-11-13T09:17:25Z","updated_at":"2017-08-29T23:07:24Z","closed_at":"2017-08-29T23:07:24Z","author_association":"NONE","body":"hi, in my current project, I have errors in the console about elements that have been registered. This errors are related with some partials vulcanized elements. \n\nI have a base file with some `core` elements (this file is vulcanized) and then, each element in different pages will have their own components. \n\nBased on an idea of @jorgecasar, I suggest this code inside `polymer-bootstrap.html` to avoid these console errors:\n\n```\n      if (!Polymer.telemetry.isRegistered(prototype.is)) {\n        Polymer.telemetry._registrate(prototype);\n        document.registerElement(prototype.is, options);\n      }\n```\n\nThe idea is simple, add a method to `telemetry` to check if the new component has been registered. If is not, we register it. \n\nI've used my current project to test and check the result with the new code. I will try to make a test inside Polymer to send the pull request with the modifications.\n"}}
{"actor":{"display_login":"TimvdLippe"}}