{"action":"created","issue":{"url":"https://api.github.com/repos/nippur72/PolymerTS/issues/13","labels_url":"https://api.github.com/repos/nippur72/PolymerTS/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/nippur72/PolymerTS/issues/13/comments","events_url":"https://api.github.com/repos/nippur72/PolymerTS/issues/13/events","html_url":"https://github.com/nippur72/PolymerTS/pull/13","id":93548435,"number":13,"title":"Added ability to register an element from its \"class\"","user":{"login":"lgrignon","id":6956079,"avatar_url":"https://avatars.githubusercontent.com/u/6956079?v=3","gravatar_id":"","url":"https://api.github.com/users/lgrignon","html_url":"https://github.com/lgrignon","followers_url":"https://api.github.com/users/lgrignon/followers","following_url":"https://api.github.com/users/lgrignon/following{/other_user}","gists_url":"https://api.github.com/users/lgrignon/gists{/gist_id}","starred_url":"https://api.github.com/users/lgrignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgrignon/subscriptions","organizations_url":"https://api.github.com/users/lgrignon/orgs","repos_url":"https://api.github.com/users/lgrignon/repos","events_url":"https://api.github.com/users/lgrignon/events{/privacy}","received_events_url":"https://api.github.com/users/lgrignon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-07T14:48:01Z","updated_at":"2015-07-08T13:05:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nippur72/PolymerTS/pulls/13","html_url":"https://github.com/nippur72/PolymerTS/pull/13","diff_url":"https://github.com/nippur72/PolymerTS/pull/13.diff","patch_url":"https://github.com/nippur72/PolymerTS/pull/13.patch"},"body":"Hello,\r\n\r\n  Your API seemed very promising to us so we started to use it, but it lacks the possibility to declare the  polymer element with its class:\r\n    \r\n    class My extends polymer.Base implements polymer.Element {\r\n    }\r\n\r\n    createElement(My); // did not work for us\r\n\r\n  So we slightly modified your API to enable this.\r\n\r\n  Please tell us if you are ok with this, and please merge if so.\r\n\r\n  Thanks for your work!"},"comment":{"url":"https://api.github.com/repos/nippur72/PolymerTS/issues/comments/119572174","html_url":"https://github.com/nippur72/PolymerTS/pull/13#issuecomment-119572174","issue_url":"https://api.github.com/repos/nippur72/PolymerTS/issues/13","id":119572174,"user":{"login":"nippur72","id":2598443,"avatar_url":"https://avatars.githubusercontent.com/u/2598443?v=3","gravatar_id":"","url":"https://api.github.com/users/nippur72","html_url":"https://github.com/nippur72","followers_url":"https://api.github.com/users/nippur72/followers","following_url":"https://api.github.com/users/nippur72/following{/other_user}","gists_url":"https://api.github.com/users/nippur72/gists{/gist_id}","starred_url":"https://api.github.com/users/nippur72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nippur72/subscriptions","organizations_url":"https://api.github.com/users/nippur72/orgs","repos_url":"https://api.github.com/users/nippur72/repos","events_url":"https://api.github.com/users/nippur72/events{/privacy}","received_events_url":"https://api.github.com/users/nippur72/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T13:05:50Z","updated_at":"2015-07-08T13:05:50Z","body":"Private members do not require annotations, but yes polymer-published properties do still require them.\r\n\r\nI'm not totally sure about having properties published automatically without the decorator. Consider also that apart from simple cases, the decorator is needed (type, notify etc).\r\n\r\nAs for what actaully puts field members outside of the prototype, it's the constructor itself. When constructor is called with `apply` it initializes all field members and thus it injects them onto the object. \r\n\r\n\r\n"}}