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.2 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.24 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.23 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.1 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.22 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.21 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.5.0 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.20 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.19 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.18 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.17 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.16 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.3.13 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.3.12 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.3.11 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.15 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.14 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.13 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.12 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.4.11 lib/assets/javascripts/widgets/form/presenter.js.coffee