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

Add an .each method? #7

Closed
sjwilliams opened this issue Jun 19, 2014 · 1 comment
Closed

Add an .each method? #7

sjwilliams opened this issue Jun 19, 2014 · 1 comment
Milestone

Comments

@sjwilliams
Copy link
Owner

adding a scrollstory.each(cb) would eliminate having to do things like this:

_(scrollStory.getItems()).each(function(item){
  // do something
});
@sjwilliams sjwilliams added this to the 0.2.0 milestone Aug 27, 2014
@sjwilliams
Copy link
Owner Author

Added in v0.2.0. Code: a866bfa.

Use like so:

this.each(function(item, index){ console.log(item.id) });

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