Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild JavaScript events API #36

Open
michalstocki opened this issue Oct 3, 2014 · 0 comments
Open

Rebuild JavaScript events API #36

michalstocki opened this issue Oct 3, 2014 · 0 comments

Comments

@michalstocki
Copy link
Owner

It would be nice to rebuild event's interface. We would like to replace one callback with different parameters to JavaScript-specific

FWRecorder.addEventListener("eventName", function(){
    // ...
});

interface. This will allow avoid using large case statement.

Another option is to use JS signals: https://github.com/millermedeiros/js-signals

Yet another option is to use a "jQuery style" events lisening:

FWRecorder.on("eventName", ["sessionName"], function() {
    // ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant