jyoungblood / smoke.js

framework-agnostic styled alert system for javascript
http://smoke.js.org/
930 stars 107 forks source link

smoke.signal ... the previous way #49

Open dtrillo opened 10 years ago

dtrillo commented 10 years ago

I am using smoke.js for a long time. I already wrote about this library on my blog: #manejandodatos Smoke.Js for showing alerts and messages - http://www.manejandodatos.es/2013/10/smoke-js-showing-alerts-messages

In a previous version of this library I code something like this:

smoke.signal('Message', 1000);

where 1000 is the time that the funcion is working!

A few days ago, I updated smoke.js to the new version and I have noticed that the previous function is not working anymore!

Although I can notice the improvement is the new "smoke.signal" allowing callbacks, is there any chance to have a "smoke.signal2" function like in the previous version?

agamemnus commented 10 years ago

Append a property yourself with a function that switches the parameters, perhaps...