Skip to content

Commit ca8a2d2

Browse files
committed
clean up TrackBase
1 parent 1c019bb commit ca8a2d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

js/trackBase.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class TrackBase {
538538

539539
menuItems.push('<hr/>')
540540

541-
function dialogPresentationHandler() {
541+
const dialogPresentationHandler = () => {
542542

543543
if (this.trackView.track.selected) {
544544
this.browser.dataRangeDialog.configure(this.trackView.browser.getSelectedTrackViews())
@@ -552,21 +552,21 @@ class TrackBase {
552552

553553
if (this.logScale !== undefined) {
554554

555-
function logScaleHandler() {
555+
const logScaleHandler = () => {
556556
this.logScale = !this.logScale
557557
this.trackView.repaintViews()
558558
}
559559

560560
menuItems.push({element: createCheckbox("Log scale", this.logScale), click: logScaleHandler})
561561
}
562562

563-
function autoScaleHandler() {
563+
const autoScaleHandler = () => {
564564
this.autoscaleGroup = undefined
565565
this.autoscale = !this.autoscale
566566
this.browser.updateViews()
567567
}
568568

569-
menuItems.push({element: createCheckbox("Log scale", this.logScale), click: autoScaleHandler})
569+
menuItems.push({element: createCheckbox("Log scale", this.autoscale), click: autoScaleHandler})
570570
}
571571

572572
return menuItems
@@ -584,6 +584,7 @@ class TrackBase {
584584
* Return the first feature in this track whose start position is > position
585585
* @param chr
586586
* @param position
587+
* @param direction
587588
* @returns {Promise<void>}
588589
*/
589590
async nextFeatureAfter(chr, position, direction) {

0 commit comments

Comments
 (0)