In these two cases I prefer explicit Promise callbacks
In both cases we need the `catch` statement due to the fact that a sendIQ call gets made which rejects for error stanzas (and I find the Promise form much compacter). Additionally, we don't want to hold up subsequent execution until the element has been faded out.
Showing
Please register or sign in to comment