Synbiota / GENtle2

GENtle2 - Web-Based DNA Editor for Synthetic Biology
https://synbiota.com
100 stars 37 forks source link

Tentative fix for #227 #228

Closed alexandremeunier closed 9 years ago

alexandremeunier commented 9 years ago

This is to fix the A "url" property or function must be specified silent exception.

Essentially this does two things:

  1. Replaces sync with a noop function in the sequence model factory
  2. Intercept addition and creations in the Sequences collection (via Sequences#model): the original model class is replaced by a superset of it where #sync has been restored.

It is slightly brutal but would potentially allow us to remove the TemporarySequence class (since all sequences not in the Sequences collection are temporary).

alexandremeunier commented 9 years ago

@AJamesPhillips happy to get your feedback on this.