matthias-schuetz/Tooltip

Uncaught TypeError: Cannot read property 'trim' of null

Closed this issue · 1 comments

This is a bit of a problem as it is, so please fix it like this:
Line 34: - var tooltipText = elm.getAttribute("title").trim();
Line 34: + var tooltipText = (elm.getAttribute("title") || '').trim();

It's fixed now and the repository has been updated.