1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-08 20:50:09 +00:00

1. Updated 'addMethod' on emitter, to return this, so you can chain multiple together

2. Updated wget return value to expose an 'abort' event
This commit is contained in:
Bryan Roe
2019-02-13 16:05:51 -08:00
parent 76fac42a5f
commit 2f657f31e5
3 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -752,7 +752,9 @@ duk_ret_t ILibDuktape_EventEmitter_Inherits_addMethod(duk_context *ctx)
duk_push_heapptr(ctx, emitter->object); // [emitterUtils][ptr][target]
ILibDuktape_CreateProperty_InstanceMethodEx(ctx, (char*)duk_require_string(ctx, 0), duk_require_heapptr(ctx, 1));
return(0);
duk_push_this(ctx);
return(1);
}
duk_ret_t ILibDuktape_EventEmitter_EmitterUtils_Finalizer(duk_context *ctx)
{