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

Switch to "listener" scheme instead of override for on...Message #5

Open
robotconscience opened this issue Jan 21, 2014 · 0 comments
Open

Comments

@robotconscience
Copy link
Member

Up for discussion, but I think we should switch to the scheme we used in the past to add listeners to functions instead of just overriding onBooleanMessage, etc:

// now
sb.onBooleanMessage = myBooleanFunction;

// future
sb.onBooleanMessage( myBooleanFunction );

// OR
sb.addListener( sb.onBooleanMessage, myBooleanFunction );
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