Sha256: ba1c957906e4336e53b3274998e798ea2d51313c1a34b9bd9817fa270cca7935

Contents?: true

Size: 381 Bytes

Versions: 91

Compression:

Stored size: 381 Bytes

Contents

'use strict'
observable = require('observable').mixin

define ->

  (form, record) ->


    # TODO create view_model
    form: observable Object.create null,
      title:
        set: (title) -> record.title = title
        get: -> record.title
        configurable: true
      body:
        set: (body) -> record.body = body
        get: -> record.body
        configurable: true

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
ende-0.5.22 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.21 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.20 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.19 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.18 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.17 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.16 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.15 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.14 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.13 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.12 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.10 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.9 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.8 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.7 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.6 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.25 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.5 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.4 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.3 lib/assets/javascripts/widgets/form/presenter.js.coffee