Sha256: d71fcc041843e5732838b0c291d1d322189950c574b45f60743206f8dead6bd2

Contents?: true

Size: 602 Bytes

Versions: 26

Compression:

Stored size: 602 Bytes

Contents

var handlers, model, persistable, record;

require('./queryable');

handlers = {
  store_after_saved: function() {
    var storage;

    storage = model[this.resource.toString()].storage;
    if (this._id) {
      return storage.store(this._id, this);
    }
  }
};

persistable = {
  record: {
    after_initialize: function() {
      return this.after('saved', handlers.store_after_saved);
    }
  }
};

model = window.model;

record = window.record;

model.persistable = true;

model.mix(function(modelable) {
  return modelable.record.after_initialize.push(persistable.record.after_initialize);
});

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ende-0.3.13 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.12 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.11 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.10 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.9 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.8 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.7 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.6 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.5 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.4 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.3 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.2 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.1 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.3.0 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.21 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.20 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.19 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.18 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.17 vendor/components/indefinido-indemma/lib/record/persistable.js
ende-0.2.16 vendor/components/indefinido-indemma/lib/record/persistable.js