Fixed Tooltip TypeError when quickly hovering between multiple tooltips

old
Roman Rott 2016-10-07 23:45:00 +03:00
parent c7ef9ea772
commit ca1de73201
No known key found for this signature in database
GPG Key ID: F6909DFE38B6B4D3
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ const TRANSITIONS = {
function transitionEventNamesFor (element) {
for (const transition in TRANSITIONS) {
if (element.style[transition] !== undefined) {
if (element && element.style[transition] !== undefined) {
return TRANSITIONS[transition];
}
}