commit/galaxy-central: jgoecks: Trackster: make compatible with recent Backbone-relational update by using findOrCreate rather than creating new dataset objects each time. This fixes composite tracks and readding tracks.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5432c6f3fe42/ Changeset: 5432c6f3fe42 User: jgoecks Date: 2013-09-11 22:27:16 Summary: Trackster: make compatible with recent Backbone-relational update by using findOrCreate rather than creating new dataset objects each time. This fixes composite tracks and readding tracks. Affected #: 1 file diff -r bfcb397e240947dead624e730c3bc1ebb9fbf933 -r 5432c6f3fe421b820673d6096cc039085555b44c static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -2321,7 +2321,7 @@ this.dataset = null; if (obj_dict.dataset) { // Dataset can be a Backbone model or a dict that can be used to create a model. - this.dataset = (obj_dict.dataset instanceof Backbone.Model ? obj_dict.dataset : new data.Dataset(obj_dict.dataset) ); + this.dataset = (obj_dict.dataset instanceof Backbone.Model ? obj_dict.dataset : data.Dataset.findOrCreate(obj_dict.dataset) ); } this.dataset_check_type = 'converted_datasets_state'; this.data_url_extra_params = {}; Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org