Skip to content

Instantly share code, notes, and snippets.

@timrwood
Created January 14, 2014 20:03
Show Gist options
  • Save timrwood/8424686 to your computer and use it in GitHub Desktop.
Save timrwood/8424686 to your computer and use it in GitHub Desktop.
function () {
var last = null;
this.get('content').forEach(function (item) {
item.set('prev', last);
item.set('next', null);
if (last) {
last.set('next', item);
}
last = item;
});
}.property('arrangedContent')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment