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.7.6 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.5 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.4 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.3 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.2 vendor/assets/luca-ui/modules/deferrable.js
luca-0.7.0 vendor/assets/luca-ui/modules/deferrable.js
luca-0.6.9 vendor/assets/luca-ui/modules/deferrable.js
luca-0.6.8 vendor/assets/luca-ui/modules/deferrable.js
luca-0.6.7 vendor/assets/luca-ui/modules/deferrable.js
luca-0.6.6 vendor/assets/luca-ui/modules/deferrable.js