PageRenderTime 175ms CodeModel.GetById 41ms RepoModel.GetById 0ms app.codeStats 0ms

/static/scripts/mvc/data.js

https://bitbucket.org/jmchilton/adapt
JavaScript | 19 lines | 12 code | 3 blank | 4 comment | 0 complexity | 6d87dd6412f6cb72467aa6773d440dcb MD5 | raw file
  1. /**
  2. * A dataset. In Galaxy, datasets are associated with a history, so
  3. * this object is also known as a HistoryDatasetAssociation.
  4. */
  5. var Dataset = Backbone.RelationalModel.extend({
  6. defaults: {
  7. id: '',
  8. type: '',
  9. name: '',
  10. hda_ldda: 'hda'
  11. },
  12. urlRoot: galaxy_paths.get('datasets_url')
  13. });
  14. var DatasetCollection = Backbone.Collection.extend({
  15. model: Dataset
  16. });