Using API Triggers Without jQuery?

Is there a plain javaScript equivalent to the various event triggers?

For instance, what would be the plain JS equivalent of 

 

  $(document).on('knack-record-delete.view_1', function(event, view, record) {
    console.log(record)
  });

 

Thanks

Conan -- we are attempting to (1) read some Knack records via JS and (2) display those record results using a 3rd-party embedded widget, such as the Bing Truck Maps API. Any pointers on where to get started on either reading the API via JS or embedding 3rd party widgets using Knack's methods for adding JS? Thanks, Chris

 

Not 100% but using simple chrome console and inspector I am verifying my event hooks being registered if I do this:

Knack.on('knack-record-delete.view_1', function(event, view, record) {
console.log(record)
});

you could also try attaching an event listener to the document...

document.addEventListener('knack-record-delete.view_1', function(event, view, record) {
console.log(record)
});