Hi,
I think I have found an error in the documentation on the presentation of the events.add function here: https://krpano.com/docu/xml/#events.dynamicevents
There is a reversal in the parameters.
It reads: events.add(events, callback, name)
Whereas it should read: events.add(name, events, callback)