Sha256: 2a8fc0b0acb9629d19a71d2213409d1ad19ace91b6f82eebce2d4e65ca5383f6

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

Informant.LocusModel = Backbone.Model.extend({
  initialize: function(options) {
    this.id = options._id;
    this.buckets = new Informant.BucketList(options.buckets, { parent: this });
    this.entries = new Informant.EntryList(options.entries_page, { parent: this, cached: false });
  },

  locus: function() {
    return this;
  },
  
  index_label: function() { return 'All'; },
  
  entries_path: function() {
    return this.hash_path() + '/entries';
  },
  
  hash_path: function() {
    return '#/locus/' + this.locus().id;
  }
  
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
c2-0.1.13 public/javascripts/c2/informant/models/locus.js
c2-0.1.12 public/javascripts/c2/informant/models/locus.js
c2-0.1.11 public/javascripts/c2/informant/models/locus.js
c2-0.1.10 public/javascripts/c2/informant/models/locus.js
c2-0.1.9 public/javascripts/c2/informant/models/locus.js
c2-0.1.8 public/javascripts/c2/informant/models/locus.js
c2-0.1.7 public/javascripts/c2/informant/models/locus.js
c2-0.1.6 public/javascripts/c2/informant/models/locus.js
c2-0.1.5 public/javascripts/c2/informant/models/locus.js
c2-0.1.4 public/javascripts/c2/informant/models/locus.js
c2-0.1.3 public/javascripts/c2/informant/models/locus.js