Working with legacy code, I stumbled upon such code:
this.User.updateRole(params)
.then(this._onUserDismissingSetSuccess(), this.$alert.error)
["finally"](function () {
this.isSendingData = false;
});
and some other occasions with ["finally"]
.
Which made me scratch my head: what's the deal, why not .finally()
? Is it some pattern, some trick or what?