humane-js
humane-js copied to clipboard
remove before log (or error/info/etc) together option
Sometimes there is a need of two or more logs one after another. So the second log must appear without waiting the first one. We can do this with remove() method:
humane.error("something wrong happened...");
(by the way another wrong happens, so log must appear and no wait:)
humane.remove();
humane.error("another wrong...");
It would be nice if there was an option something like
humane.dontWaitForDisappear = true
and we didn't have to call "remove()" method again and again
hmm... but don't the notifications overlap each other?
it may be, so I recommend it as an "option".
It may be also a parameter;
var dontWait = true;
humane.error( "something wrong", dontWait );
What do you think?