Skip to content

Commit

Permalink
fix(android): include type property in events
Browse files Browse the repository at this point in the history
  • Loading branch information
garymathews authored and sgtcoolguy committed Jan 19, 2021
1 parent 7c8ebe6 commit 69ac871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/runtime/v8/src/native/V8Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Java_org_appcelerator_kroll_runtime_v8_V8Object_nativeFireEvent

jsData->Set(context, NEW_SYMBOL(V8Runtime::v8_isolate, "bubbles"), TypeConverter::javaBooleanToJsBoolean(V8Runtime::v8_isolate, bubble));
jsData->Set(context, NEW_SYMBOL(V8Runtime::v8_isolate, "source"), source);
jsData->Set(context, NEW_SYMBOL(V8Runtime::v8_isolate, "type"), jsEvent);

if (reportSuccess || code != 0) {
jsData->Set(context, NEW_SYMBOL(V8Runtime::v8_isolate, "success"), TypeConverter::javaBooleanToJsBoolean(V8Runtime::v8_isolate, code == 0));
Expand Down

0 comments on commit 69ac871

Please sign in to comment.