From 1c863906ee0db20d02757d7adcb8a0861c5428f1 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 1 Jul 2019 15:45:26 +0200 Subject: [PATCH] added comment to forceResolve function --- src/app/ui/tooltip.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ui/tooltip.js b/src/app/ui/tooltip.js index b63ad06cbd..72025e1464 100644 --- a/src/app/ui/tooltip.js +++ b/src/app/ui/tooltip.js @@ -24,6 +24,10 @@ class Toaster { animation(this.tooltip, css.animateTop.className) } + /** + * Force resolve the promise to close + * the toaster ignoring timeout + */ forceResolve () { if (this.id) clearTimeout(this.id) if (this.resolveFn) this.resolveFn()