Sha256: b22770fe55860ae1c11d5bc894889211804864dd31df446a453224b0e085a375

Contents?: true

Size: 1.03 KB

Versions: 45

Compression:

Stored size: 1.03 KB

Contents

'use strict'
define ->
  observable = require('observable').mixin

  (authenticator, recoverer, base) ->

    authenticator: observable Object.create null,
      status:
        configurable: true
        get: -> authenticator.status
        set: (status) -> authenticator.status = status
      message:
        configurable: true
        get: -> authenticator.message
        set: (message) -> authenticator.message = message
      email:
        configurable: true
        set: (email) -> authenticator.email = email
        get: -> authenticator.email
      button_label:
        configurable: true
        set: (button_label) -> authenticator.button_label = button_label
        get: -> authenticator.button_label
      password:
        configurable: true
        set: (password) -> authenticator.password = password
        get: -> authenticator.password
      authenticate:
        configurable: true
        value: authenticator.authenticate

    # TODO split into two presenters
    recoverer: observable recoverer

    base: observable base

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ende-0.2.15 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.14 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.13 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.12 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.11 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.10 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.9 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.8 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.7 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.6 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.5 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.4 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.3 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.2 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.1 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.2.0 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.14 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.13 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.12 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.11 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee