Skip to content

Commit 583bbd7

Browse files
committed
Accomodate Safari's lack of Iterator.map()
1 parent c595478 commit 583bbd7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bravue",
3-
"version": "0.21.2",
3+
"version": "0.21.3",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

src/components/histogram/EqtlCount.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ export default {
106106
calc_pos_thresholds: function(start, stop){
107107
let nbins = 200
108108
let x_step = Math.floor( (stop - start) / nbins)
109-
let result = Array(nbins-1)
110-
.keys()
111-
.map((b) => start + (b+1) * x_step)
112-
.toArray()
113-
return(result)
114-
109+
let bin_ends = Array(nbins-1)
110+
for(let i = 0; i < nbins -1; i++){
111+
bin_ends[i] = x_step * (i+1) + start
112+
}
113+
return(bin_ends)
115114
},
116115
bin_data: function(eqtl_data, start, stop){
117116
let pos_thresholds = this.calc_pos_thresholds(start, stop)

0 commit comments

Comments
 (0)