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

Wrong behaviour when instantiating MqttClient without 'new' #187

Closed
jeloou opened this issue May 20, 2014 · 0 comments · Fixed by #183
Closed

Wrong behaviour when instantiating MqttClient without 'new' #187

jeloou opened this issue May 20, 2014 · 0 comments · Fixed by #183

Comments

@jeloou
Copy link
Contributor

jeloou commented May 20, 2014

In lib/client.js#L38-40, when creating a new client instance without the new operator, the conditional doesn't behave like expected. The precedence of ! is higher than the precedence of instanceof.

Also, the stream variable is not defined.

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

Successfully merging a pull request may close this issue.

1 participant