@atlaskit/tooltip
Version:
A tooltip is a floating, non-actionable label used to explain a user interface element or feature.
15 lines • 357 B
JavaScript
let delayId = null;
export function clearScheduled() {
if (delayId != null) {
window.clearTimeout(delayId);
delayId = null;
}
}
export function scheduleTimeout(fn, delay) {
clearScheduled();
delayId = window.setTimeout(() => {
delayId = null;
fn();
}, delay);
}
//# sourceMappingURL=shared-schedule.js.map