Rewrote some navigation stuff based on new parser
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { SysCallMapping } from "../system";
|
||||
import { EventHook } from "../hooks/event";
|
||||
import {SysCallMapping} from "../system";
|
||||
import {EventHook} from "../hooks/event";
|
||||
|
||||
export function eventSyscalls(eventHook: EventHook): SysCallMapping {
|
||||
return {
|
||||
async dispatch(ctx, eventName: string, data: any) {
|
||||
"event.dispatch": async(ctx, eventName: string, data: any) => {
|
||||
return eventHook.dispatchEvent(eventName, data);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user