exporl / apex

APEX 4: software platform for auditory behavioural and psychophysical experiments. This repository follows the major releases of APEX.
http://kuleuven.be/exporl/apex/
Other
10 stars 2 forks source link

Flowrunner api initialize function #192

Closed croissanne closed 7 years ago

croissanne commented 7 years ago

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.

croissanne commented 7 years ago

c 2252