Message from JavaScript discussions

June 2019

— Any errors?


When I call like dispatch(elemArray,'fshsjssk');
This: nothing happens error function not running

— But when I use
runs errors

— But I don't need an alert message..I have to avoid it

— What should I do?

— What does $.when() do?

— Why not just do an empty function then?

— $.when(dispatch()).done(function() {})

— Empty not works

— When I put console.log() or alert in that phare works

— Wat

— That's impossible