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.2.3 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.2.2 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.2.1 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.2.0 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.14 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.13 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.12 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.11 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.10 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.9 lib/assets/javascripts/widgets/form/presenter.js.coffee
ende-0.1.8 lib/assets/javascripts/widgets/form/presenter.js.coffee