Skip to content

Conversation

far-blue
Copy link
Contributor

Summary

Use object wrapping rather than the typeof check to determine if subscriber is valid. Correctly handles objects and functions and is compatible with how RxJS and zen-observable behave as they don’t distinguish between objects and functions. (issue #445)

…criber is valid. Correctly handles objects and functions and is compatible with how RxJS and zen-observable behave as they don’t distinguish between objects and functions. (issue #445)
@briancavalier
Copy link
Member

Great thanks @far-blue! Could you add a test here that covers the function case?

Copy link
Member

@briancavalier briancavalier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@briancavalier briancavalier merged commit dfafcdb into cujojs:master May 26, 2017
@far-blue far-blue deleted the subscribe_object_check branch May 26, 2017 23:07
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 this pull request may close these issues.

2 participants