{"action":"opened","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1316","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1316/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1316/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1316/events","html_url":"https://github.com/Polymer/polymer/issues/1316","id":63170246,"number":1316,"title":"Polymer function not accessible in firefox/safari","user":{"login":"prateekbh","id":5960497,"avatar_url":"https://avatars.githubusercontent.com/u/5960497?v=3","gravatar_id":"","url":"https://api.github.com/users/prateekbh","html_url":"https://github.com/prateekbh","followers_url":"https://api.github.com/users/prateekbh/followers","following_url":"https://api.github.com/users/prateekbh/following{/other_user}","gists_url":"https://api.github.com/users/prateekbh/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekbh/subscriptions","organizations_url":"https://api.github.com/users/prateekbh/orgs","repos_url":"https://api.github.com/users/prateekbh/repos","events_url":"https://api.github.com/users/prateekbh/events{/privacy}","received_events_url":"https://api.github.com/users/prateekbh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T05:59:38Z","updated_at":"2015-03-20T05:59:38Z","closed_at":null,"body":"So I made a polymer element.\r\nand in the script part i wrote this\r\n\r\n<script>\r\n        Polymer({\r\n            renderEvents:function(e,shipment_id){\r\n                this.events=e.events;\r\n                this.shipment_id=shipment_id;\r\n            }\r\n        });\r\n    </script>\r\n\r\n\r\nAnd in my JS controller i wrote:\r\n\r\nvar timelineEl=document.querySelector(\".timeline-shipment\");\r\nconsole.log(timelineEl);\r\ntimelineEl.renderEvents(data,$scope.shipment_id);\r\n\r\n\r\n\r\nThis works fine in chrome but not in firefox/safari...\r\nI had to do this:\r\ntimelineEl.__proto__.renderEvents(data,$scope.shipment_id);\r\n"}}