mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 19:44:06 +00:00
Updated promise, so rejection is substituted if then() returns a rejected promise
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -102,6 +102,11 @@ function Promise(promiseFunc)
|
||||
parms.push(arguments[ai]);
|
||||
}
|
||||
this._XSLF.emit.apply(this._XSLF, parms);
|
||||
},
|
||||
function (e)
|
||||
{
|
||||
var parms = ['rejected', e];
|
||||
this._XSLF.emit.apply(this._XSLF, parms);
|
||||
}).parentPromise._XSLF = _resolver._self;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user