Sha256: fa7af6ffd1a6023dd5e56011799dd6a9948857443a17a6c4d9d565aec4a21fb2
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
class Joosy.Resources.Scalar extends Joosy.Function @include Joosy.Modules.Events @include Joosy.Modules.Filters constructor: (value) -> return super -> @value = value get: -> @value set: -> @load arguments... load: (value) -> @value = @__applyBeforeLoads(value) @trigger 'changed' @value __call: -> if arguments.length > 0 @set arguments[0] else @get() valueOf: -> @value.valueOf() toString: -> @value.toString() # AMD wrapper if define?.amd? define 'joosy/resources/scalar', -> Joosy.Resources.Scalar
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joosy-1.2.0.alpha.71 | source/joosy/resources/scalar.coffee |