Skip to content

Commit 08232f2

Browse files
committed
Fixing static for safari
1 parent 580c09f commit 08232f2

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

CouplingsLogoDiagramD3.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@
44
// @param alignment A multiple sequence alignment
55
// @param options presentation and data processing / statistical options
66
class CouplingsLogoDiagramD3 {
7-
static defaultOpts = {
8-
elementId: 'couplingslogo', //html element Id to use as container
9-
elementWidth: 600, // desired width of the container
10-
elementHeight: 32, // desired height of the container
11-
};
127

8+
9+
//##ROC##
1310
constructor(options, data, seqLen) {
14-
this.options = jQuery.extend(true, {}, CouplingsLogoDiagramD3.defaultOpts, options);
11+
this.options = jQuery.extend(true, {}, options);
1512
// TODO: Currently dumping in the symColHash (normalized by alignment height) - but should be an integrated data model.
1613
this.rawData = data; // other class members
1714
this.svg = null;
1815
this.bounds = null;
1916
this.seqLen = seqLen;
17+
const defaultOpts = {
18+
elementId: 'couplingslogo', //html element Id to use as container
19+
elementWidth: 600, // desired width of the container
20+
elementHeight: 32, // desired height of the container
21+
};
2022
}
2123

2224
// initDiagram()

SequenceLogoDiagramD3.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
// @param options presentation and data processing / statistical options
77
class SequenceLogoDiagramD3 {
88
// Default Options
9-
static defaultOpts = {
10-
elementId: 'seqlogo', //html element Id to use as container
11-
elementWidth: 600, // desired width of the container
12-
elementHeight: 32, // desired height of the container
13-
};
149

1510
constructor(options, data) {
16-
this.options = jQuery.extend(true, {}, SequenceLogoDiagramD3.defaultOpts, options);
11+
this.options = jQuery.extend(true, {}, options);
1712
// TODO: Currently dumping in the symColHash (normalized by alignment height) - but should be an integrated data model
1813
this.rawData = data;
1914
// other class members
2015
this.svg = null;
2116
this.bounds = null;
2217
this.derivedColumnProportions = null;
18+
const defaultOpts = {
19+
elementId: 'seqlogo', //html element Id to use as container
20+
elementWidth: 600, // desired width of the container
21+
elementHeight: 32, // desired height of the container
22+
};
2323
}
2424
// deriveColummProportions()
2525
// sorts amino acid prevalence into descending order for all columns

0 commit comments

Comments
 (0)