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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user