added comment to forceResolve function

pull/1/head
Liana Husikyan 5 years ago committed by GitHub
parent f322ec7e33
commit 69862369be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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()

Loading…
Cancel
Save