Sha256: 48b7fd7ada9607d9cf8d3364ad826ff329fc2c7ed2304d7b58504ae512eb2965

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

window.SC ||= {}

class SC.PhotosCollection extends Backbone.Collection
  model:SC.Photo

  successor_of:(member) ->
    if this.last() == member then this.first() else this.at(this.indexOf(member) + 1)

  predecessor_of:(member) ->
    if this.first() == member then this.last() else this.at(this.indexOf(member) - 1)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
partystreusel-0.0.2 vendor/assets/javascripts/carousel/models/photos_collection.js.coffee
partystreusel-0.0.1 vendor/assets/javascripts/carousel/models/photos_collection.js.coffee