Skip to content

Commit e3f4daf

Browse files
author
Manu
committed
- solved #6
1 parent 2da4389 commit e3f4daf

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ class NotificationAlert extends React.Component {
6060
}
6161
}
6262
if (noAnimate === undefined) {
63-
setTimeout(
63+
let id = setTimeout(
6464
function() {
6565
this.onDismiss(nNumber, place, "noAnimate");
6666
}.bind(this),
6767
800
6868
);
69+
console.log(id);
6970
}
7071
sNotify = {};
7172
sNotify["notify" + place.toUpperCase()] = notify;
@@ -109,13 +110,15 @@ class NotificationAlert extends React.Component {
109110
var sNotify = {};
110111
sNotify["notify" + options.place.toUpperCase()] = notify;
111112
// aici pui notify[notify.length-1].key
112-
if (options.autoDismiss > 0)
113-
setTimeout(
113+
if (options.autoDismiss > 0){
114+
let id = setTimeout(
114115
function() {
115116
this.onDismiss(nNumber, options.place);
116117
}.bind(this),
117118
options.autoDismiss * 1000 + (notify.length - 1) * 1000
118119
);
120+
console.log(id);
121+
}
119122
this.setState(sNotify);
120123
}
121124
showAllNotifications(place) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-notification-alert",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "React bootstrap 4 notification alert",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)