Sha256: 15864210547b82010bd180394cd8c32f59c438cfdf09559e2bd7a98678e39569

Contents?: true

Size: 914 Bytes

Versions: 30

Compression:

Stored size: 914 Bytes

Contents

(function() {

  Luca.modules.Deferrable = {
    configure_collection: function(setAsDeferrable) {
      var collectionManager, _ref, _ref2;
      if (setAsDeferrable == null) setAsDeferrable = true;
      if (!this.collection) return;
      if (_.isString(this.collection) && (collectionManager = (_ref = Luca.CollectionManager) != null ? _ref.get() : void 0)) {
        this.collection = collectionManager.getOrCreate(this.collection);
      }
      if (!(this.collection && _.isFunction(this.collection.fetch) && _.isFunction(this.collection.reset))) {
        this.collection = new Luca.Collection(this.collection.initial_set, this.collection);
      }
      if ((_ref2 = this.collection) != null ? _ref2.deferrable_trigger : void 0) {
        this.deferrable_trigger = this.collection.deferrable_trigger;
      }
      if (setAsDeferrable) return this.deferrable = this.collection;
    }
  };

}).call(this);

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
luca-0.9.76 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.7 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.65 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.6 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.42 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.4 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.2 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.1 vendor/assets/luca-ui/modules/deferrable.js
luca-0.9.0 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8.599 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8.59 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8.3 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8.2 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8.06 vendor/assets/luca-ui/modules/deferrable.js
luca-0.8 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.92 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.91 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.9 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.8 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.7 vendor/assets/luca-ui/modules/deferrable.js