Sha256: f96005487d94cee19d6451827eae9773865c4b879780a8d42e42dccdbfbb1fff

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

Lanes.Models.Mixins.TrackRemovals = {

    initialize: ->
        @on('remove', (model) ->
            @_removedModelIds ||= []
            @_removedModelIds.push model.getId()
        )

    getRemovedModelIds: ->
        @_removedModelIds || []

    clearRemovedModelIds: ->
        delete @_removedModelIds

    hasRemovedModels: ->
        !!@_removedModelIds
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.7.0 client/lanes/models/mixins/TrackCollectionRemovals.coffee
lanes-0.6.1 client/lanes/models/mixins/TrackCollectionRemovals.coffee
lanes-0.6.0 client/lanes/models/mixins/TrackCollectionRemovals.coffee