Skip to content

Commit

Permalink
instantiate the metadata store in the Browser controller instead of t…
Browse files Browse the repository at this point in the history
…he tracklist view
  • Loading branch information
rbuels committed May 1, 2012
1 parent 7af7162 commit e5e7a54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ Browser.prototype.createTrackList = function() {

// instantiate the tracklist
this.trackListView = new resolved_tl_class( {
trackMetaData: new JBrowse.Model.TrackMetaData({ trackConfigs: this.config.tracks }),
trackConfigs: this.config.tracks,
browser: this
});
Expand Down
1 change: 1 addition & 0 deletions js/Model/TrackMetaData.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dojo.require('dojo.data.ItemFileWriteStore');

dojo.declare( 'JBrowse.Model.TrackMetaData', dojo.data.ItemFileWriteStore,
/**
* @lends JBrowse.Model.TrackMetaData.prototype
Expand Down
2 changes: 1 addition & 1 deletion js/View/TrackList/Faceted.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
dojo.require('dojo.store.Memory');

// data store that fetches and filters our track metadata
this.trackDataStore = new JBrowse.Model.TrackMetaData({ trackConfigs: args.trackConfigs });
this.trackDataStore = args.trackMetaData;

// the div that will hold all of the track selector content
var grid_div = dojo.create('div', {
Expand Down

0 comments on commit e5e7a54

Please sign in to comment.