Skip to content

Commit e760cd0

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

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,19 @@ export default {
103103
handleEqtlMouseout: function(evt, transcript) {
104104
this.infoPopup.style.display = "none"
105105
},
106+
damn_apple: function(ele){
107+
console.log(ele)
108+
return(5226500)
109+
},
106110
calc_pos_thresholds: function(start, stop){
107111
let nbins = 200
108112
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-
113+
let bin_ends = Array(nbins-1)
114+
console.log("debuggin")
115+
for(let i = 0; i < nbins -1; i++){
116+
bin_ends[i] = x_step * (i+1) + start
117+
}
118+
return(bin_ends)
115119
},
116120
bin_data: function(eqtl_data, start, stop){
117121
let pos_thresholds = this.calc_pos_thresholds(start, stop)

0 commit comments

Comments
 (0)