dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Adding a BED file track has config with cyclic value #73

Closed mdrasmus closed 10 years ago

mdrasmus commented 10 years ago

To reproduce:

  1. Add a BED track from a local file.
  2. Click the printer icon
  3. Choose "Export as" "Dalliance config"
  4. In developer console, see the error: TypeError: cyclic object value dalliance-all.js:6983 Which refers to to this line: https://github.com/dasmoth/dalliance/blob/master/js/export-ui.js#L78

Seems like the config value for BED file tracks has a circular reference that can't be encoded in JSON, which forbids such things. I haven't tried to investigate the root cause yet.

mdrasmus commented 10 years ago

I might have posted this too soon. I'll try to make a minimal example. This might also be my own fault :-(.