File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments