File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import TrackBase from "../trackBase.js"
30
30
import IGVGraphics from "../igv-canvas.js"
31
31
import paintAxis from "../util/paintAxis.js"
32
32
import { createCheckbox } from "../igv-icons.js"
33
- import MenuUtils from "../ui/menuUtils.js"
34
33
import { PaletteColorTable } from "../util/colorPalletes.js"
35
34
import { IGVColor , StringUtils } from "../../node_modules/igv-utils/src/index.js"
36
35
import { makePairedAlignmentChords , makeSupplementalAlignmentChords , sendChords } from "../jbrowse/circularViewUtils.js"
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import TrackBase from "../trackBase.js"
29
29
import IGVGraphics from "../igv-canvas.js"
30
30
import paintAxis from "../util/paintAxis.js"
31
31
import { IGVColor , StringUtils } from "../../node_modules/igv-utils/src/index.js"
32
- import MenuUtils from "../ui/menuUtils.js"
33
32
import { createCheckbox } from "../igv-icons.js"
34
33
import { scoreShade } from "../util/ucscUtils.js"
35
34
import FeatureSource from "./featureSource.js"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ class SegTrack extends TrackBase {
100
100
const menuItems = [ ]
101
101
102
102
menuItems . push ( '<hr/>' )
103
- menuItems . push ( sortBySampleName ( this . trackView ) )
103
+ menuItems . push ( sortBySampleName ( ) )
104
104
105
105
if ( sampleDictionary ) {
106
106
menuItems . push ( '<hr/>' )
@@ -536,15 +536,15 @@ class SegTrack extends TrackBase {
536
536
}
537
537
538
538
539
- function sortBySampleName ( trackView ) {
539
+ function sortBySampleName ( ) {
540
540
541
541
const object = $ ( '<div>' )
542
542
object . text ( 'Sort by sample names' )
543
543
544
544
function sampleNameSort ( ) {
545
- trackView . track . sampleKeys . sort ( ( a , b ) => trackView . sampleNameViewport . sortDirection * a . localeCompare ( b ) )
546
- trackView . repaintViews ( )
547
- trackView . sampleNameViewport . sortDirection *= - 1
545
+ this . sampleKeys . sort ( ( a , b ) => this . trackView . sampleNameViewport . sortDirection * a . localeCompare ( b ) )
546
+ this . trackView . repaintViews ( )
547
+ this . trackView . sampleNameViewport . sortDirection *= - 1
548
548
}
549
549
550
550
return { object, click :sampleNameSort }
You can’t perform that action at this time.
0 commit comments