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

React to different criteria independently with .thru() #39

Merged
merged 2 commits into from Mar 9, 2013

Conversation

indexzero
Copy link
Member

For example, react to .over() and .under() independently.

godot.reactor()
  .thru(
    godot.reactor()
      .over(5)
      .map(function (data) {
        console.log('Over 5!');
        return data;
      }),
    godot.reactor()
      .under(5)
      .map(function (data) {
        console.log('Under 5!');
        return data;
      })
  )

indexzero added a commit that referenced this pull request Mar 9, 2013
React to different criteria independently with `.thru()`
@indexzero indexzero merged commit fa84fba into master Mar 9, 2013
@indexzero indexzero deleted the feature-thru branch March 9, 2013 04:21
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.

None yet

1 participant