Sha256: 04d6ea4b2325fbef4ab1865221978aa522d6b15abdaf45934068ba4f05920d00

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

Lanes.Data.Mixins.HasCodeField = {

    INVALID: /[^A-Z0-9a-z]/

    included: ->
        this.prototype.INVALID_CODE_CLanes.RS ||= Lanes.Data.mixins.Lanes.sCodeField.INVALID

    initialize: ->
        this.on('change:code', this.upcaseCode )

    upcaseCode: ->
        this.set('code', this.get('code').toUpperCase())
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lanes-0.0.8 client/lanes/data/mixins/HasCodeField.coffee
lanes-0.0.5 client/lanes/data/mixins/HasCodeField.coffee