Unverified Commit 69862369 authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

added comment to forceResolve function

parent f322ec7e
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment