summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-06-07 02:19:02 +0200
committeremkael <emkael@tlen.pl>2017-06-07 02:19:02 +0200
commit4c17c763d78f09c2b49e9e7feb294d4690facad2 (patch)
treee3cef633ef54a4c5d1c89aa45f99939b979d2f22
parent5fa1f89e043397baba5533a6b12bab1c15dddb68 (diff)
Workaround for IE's lack of Array.from method
-rw-r--r--http/res/ranking.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/http/res/ranking.js b/http/res/ranking.js
index 8ad9fec..3d5cdf2 100644
--- a/http/res/ranking.js
+++ b/http/res/ranking.js
@@ -60,9 +60,11 @@ var ranking = {
},
constructHash : function(params) {
- return Array.from(params).map(function(param) {
- return param[0] + ':' + param[1].join(',');
- }).join(';');
+ var paramArray = [];
+ params.forEach(function(value, key) {
+ paramArray.push(key + ':' + value.join(','));
+ });
+ return paramArray.join(';');
},
savedParams : new Map(),