humane-js icon indicating copy to clipboard operation
humane-js copied to clipboard

remove before log (or error/info/etc) together option

Open lacivert opened this issue 10 years ago • 2 comments

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

lacivert avatar Apr 15 '15 08:04 lacivert

hmm... but don't the notifications overlap each other?

wavded avatar Apr 16 '15 14:04 wavded

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?

lacivert avatar Apr 18 '15 21:04 lacivert