Browse Source

gh-1554 firefox takes much time to concat a big array

pull/1688/head
Huu Nghia NGUYEN 9 years ago committed by Ændrew Rininsland
parent
commit
f7f99e0be1
No known key found for this signature in database
GPG Key ID: ADBCD4C867F9B2DA
  1. 5
      c3.js

5
c3.js

@ -1993,12 +1993,13 @@
return Math.sqrt(Math.pow(x - pos[xIndex], 2) + Math.pow(y - pos[yIndex], 2));
};
c3_chart_internal_fn.convertValuesToStep = function (values) {
var converted = [].concat(values), i;
if (!this.isCategorized()) {
return values;
}
var converted = values.slice(0), i;
for (i = values.length + 1; 0 < i; i--) {
converted[i] = converted[i - 1];
}

Loading…
Cancel
Save