Is there any way to determine the type of event from a function callback? I assumed there'd be a type defined but that doesn't seem to be the case. So if I define data-init="init" on my view and had this js:
console.log(e.type, e.view.id, e);
e.type is not defined. I tried inspecting the object and couldn't find a parameter for it.