switch to shared components
This commit is contained in:
-6
@@ -2,7 +2,6 @@
|
||||
|
||||
var preventHover = false;
|
||||
var showOverlayTimeout;
|
||||
var hoveringElement;
|
||||
|
||||
function parentWithAttribute(elem, name) {
|
||||
|
||||
@@ -21,10 +20,6 @@
|
||||
|
||||
var elem = e.target;
|
||||
|
||||
if (elem != hoveringElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (showOverlayTimeout) {
|
||||
clearTimeout(showOverlayTimeout);
|
||||
showOverlayTimeout = null;
|
||||
@@ -244,7 +239,6 @@
|
||||
}
|
||||
|
||||
elem = parentWithAttribute(elem, 'data-id');
|
||||
hoveringElement = elem;
|
||||
|
||||
showOverlayTimeout = setTimeout(function () {
|
||||
onShowTimerExpired(elem);
|
||||
|
||||
Reference in New Issue
Block a user