1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-15 06:53:40 +00:00

Updated promise reference

This commit is contained in:
Bryan Roe
2021-03-04 10:23:10 -08:00
parent 8ac6fb4309
commit 6d15f3f5a9
2 changed files with 3 additions and 3 deletions

View File

@@ -243,10 +243,10 @@ function Promise(promiseFunc)
{
// Save reference of this object
refTable[this._internal._hashCode()] = this._internal;
this._internal.once('settled', (function ()
this._internal.once('settled', function ()
{
delete refTable[this._hashCode()];
}).internal);
});
}
Object.defineProperty(this, "completed", {
get: function ()