jasonzissman / TimeMe.js

A JavaScript library to accurately time how long a user views a web page, disregarding idle time and time when the tab or window is minimized.
MIT License
592 stars 124 forks source link

Provide the element to tack, not the ID #39

Open aemonge opened 7 years ago

aemonge commented 7 years ago

Is it posible to tack an element by passing the element it self instead of it's ID ?

This would be specially useful for Apps developed in Polymer/WebComponents

letharion commented 7 years ago

I wanna do this as well and looked into the code. Currently not possible, and it's not entirely trivial to fix either as several functions deep depend on the id as a string being present.