1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 23:33:38 +00:00

Fixed bug in promise.event_forwarder that dispatched incorrectly

This commit is contained in:
Bryan Roe
2021-08-23 14:37:23 -07:00
parent 3f03f4c972
commit 6b78beae11
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ function event_switcher(desired_callee, target)
function event_forwarder(sourceObj, sourceName, targetObj, targetName)
{
sourceObj.on(sourceName, targetObj.emit.bind(targetObj));
sourceObj.on(sourceName, targetObj.emit.bind(targetObj, targetName));
}