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

Callback arguments order #38

Closed
blackrabbit99 opened this issue Jan 29, 2014 · 1 comment
Closed

Callback arguments order #38

blackrabbit99 opened this issue Jan 29, 2014 · 1 comment

Comments

@blackrabbit99
Copy link

I'm every day confusing that first arg is message and second is data.
I propose set obj param something like code below

subscriber( {
message:message,
data: data
});
@mroderick
Copy link
Owner

Switching to use an object parameter would break all backwards compatibility and all applications currently using PubSubJS

It should be trivial for you to implement a wrapper, that will give you any api you desire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants