Sha256: 039146dec3a60f8c9d680cd009f26f6d79aed91a0d1a9f2820b219d391395eb0

Contents?: true

Size: 292 Bytes

Versions: 60

Compression:

Stored size: 292 Bytes

Contents

maid =

  model : ->
    @record.after_initialize.push maid.record if @washing?

  record: ->

    @subscribe 'dirty', (dirty) ->
      dirty && setTimeout =>
        @save()
      , 500

# Extend indemma
model = window.model
model.mix (modelable) ->
  modelable.after_mix.unshift maid.model

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
ende-0.3.3 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.3.2 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.3.1 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.3.0 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.21 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.20 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.19 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.18 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.17 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.16 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.15 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.14 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.13 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.12 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.11 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.10 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.3 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.2 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.1 vendor/components/indefinido-indemma/src/lib/record/maid.coffee
ende-0.2.0 vendor/components/indefinido-indemma/src/lib/record/maid.coffee