Sha256: b17491351dfec4fb095b1fe35f7cf82545218935f39616f7fb1412235bfa9c72

Contents?: true

Size: 1004 Bytes

Versions: 6

Compression:

Stored size: 1004 Bytes

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
      classes:
        configurable: true
        value: ->
          "widget authenticator #{authenticator.status}"
      email:
        configurable: true
        set: (email) -> authenticator.email = email
        get: -> authenticator.email
      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

6 entries across 6 versions & 1 rubygems

Version Path
ende-0.1.5 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.4 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.3 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.2 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.1.1 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee
ende-0.0.1 lib/assets/javascripts/widgets/authenticator/presenter.js.coffee