You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
So I made a polymer element.
<script> Polymer({ renderEvents:function(e,shipment_id){ this.events=e.events; this.shipment_id=shipment_id; } }); </script>and in the script part i wrote this
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);
The text was updated successfully, but these errors were encountered: