Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymer function not accessible in firefox/safari #1316

Closed
prateekbh opened this issue Mar 20, 2015 · 3 comments
Closed

Polymer function not accessible in firefox/safari #1316

prateekbh opened this issue Mar 20, 2015 · 3 comments

Comments

@prateekbh
Copy link

So I made a polymer element.
and in the script part i wrote this

<script> Polymer({ renderEvents:function(e,shipment_id){ this.events=e.events; this.shipment_id=shipment_id; } }); </script>

And in my JS controller i wrote:

var timelineEl=document.querySelector(".timeline-shipment");
console.log(timelineEl);
timelineEl.renderEvents(data,$scope.shipment_id);

This works fine in chrome but not in firefox/safari...
I had to do this:
timelineEl.proto.renderEvents(data,$scope.shipment_id);

@bruunofco
Copy link

Any example in Plunker?

@prateekbh
Copy link
Author

unable to get a polymer example running in plunkr... can help?

@prateekbh
Copy link
Author

So i was using a SPA
and the other view which loaded via ajax was bringing in new polymer tags
so it was not getting initialised before i accessed them..
any way of knowing such initialisation event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants