Sha256: 6dbfbe741e24b24f2e670e28beccc447d79eaf7464e59c039e5dcc236e3ebb9e

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

class Skr.Models.SequentialId extends Skr.Models.Base

    props:
        id: 'integer'
        ids:
            type: 'array', required: true, default: -> []

    registerforPubSub: false

    modelTypeIdentifier: ->
        'sequential-ids'

    updateValue: (id, count) ->
        @ids = _.map @ids, (si) ->
            si = _.clone si
            si.count = parseInt(count) if si.id is id
            si

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-0.4.0 client/skr/models/SequentialId.coffee