sjwilliams / scrollstory

A jQuery plugin for building scroll-based stories

Home Page:http://sjwilliams.github.io/scrollstory/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an .each method?

sjwilliams opened this issue · comments

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

_(scrollStory.getItems()).each(function(item){
  // do something
});

Added in v0.2.0. Code: a866bfa.

Use like so:

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