JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

Question about setting message.close on TTL -1 growls #68

Open royerboat opened 9 years ago

royerboat commented 9 years ago

Why are we not setting the message.close if we create a growl that has a TTL of -1?

If we close a growl with that setting, then message.close gets set to true. Creating a growl with a TTL of -1 has no message.close set. Creating a growl normally gets message.close set to false.

emalcdo commented 9 years ago

i'm using message.destroy() to dismiss the message

i.e:

notif = growl.info("Downloading files", {ttl: -1});

after callback of download

notif.destroy();