Skip to content

Commit

Permalink
Sessions with sample info files now work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jul 22, 2024
1 parent 49e361a commit a4cc0db
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions js/sample/sampleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,15 @@ class SampleInfo {

constructor(browser) {

this.sampleInfoFiles = []

const found = browser.tracks.some(t => typeof t.getSamples === 'function')
if (found.length > 0) {
browser.sampleInfoControl.setButtonVisibility(true)
}

// TODO -- this just looks wrong, and should not be necessary. If it is necessary the code should be in Browser
// browser.on('trackorderchanged', ignore => {
//
// if (this.hasAttributes()) {
//
// const found = browser.getTracks().some(track => typeof track.getSamples === 'function')
//
// if (found.length > 0) {
// browser.layoutChange()
// }
// }
// })

}

initialize() {
this.sampleInfoFiles = []
this.attributeNames = []
this.sampleDictionary = {}
this.sampleMappingDictionary = {}
Expand Down

0 comments on commit a4cc0db

Please sign in to comment.