When registering multiple listeners (for on("savedFile", cb) for instance) with the same name, there are timed out promises, so the old listeners do not get overwritten, which is fine.
But maybe it might be an idea to call a javascript function from the apex called "initialize" or something, where the user could put any code that they want to run before starting any experiment. Useful for installing callbacks.
When registering multiple listeners (for on("savedFile", cb) for instance) with the same name, there are timed out promises, so the old listeners do not get overwritten, which is fine.
But maybe it might be an idea to call a javascript function from the apex called "initialize" or something, where the user could put any code that they want to run before starting any experiment. Useful for installing callbacks.