Prettifier

This commit is contained in:
Ezequiel Holzweissig
2021-04-10 20:38:33 -03:00
parent 82727b825c
commit a3ed24c766
2 changed files with 4 additions and 4 deletions

View File

@@ -123,7 +123,7 @@
/**
* Dismiss the notification
*/
NotificationFx.prototype.dismiss = function (close=true) {
NotificationFx.prototype.dismiss = function (close = true) {
this.active = false;
clearTimeout(this.dismissttl);
this.ntf.classList.remove("ns-show");
@@ -131,7 +131,7 @@
this.ntf.classList.add("ns-hide");
// callback
if(close) this.options.onClose();
if (close) this.options.onClose();
}, 25);
// after animation ends remove ntf from the DOM