Browse Source

Fix infinite loop on multiline tick text - #714

pull/729/head
Masayuki Tanaka 10 years ago
parent
commit
d5d518d314
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/c3.axis.js

2
c3.js

@ -6522,7 +6522,7 @@
function split(splitted, text) {
spaceIndex = undefined;
for (var i = 0; i < text.length; i++) {
for (var i = 1; i < text.length; i++) {
if (text.charAt(i) === ' ') {
spaceIndex = i;
}

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/c3.axis.js

@ -116,7 +116,7 @@ function c3_axis(d3, params) {
function split(splitted, text) {
spaceIndex = undefined;
for (var i = 0; i < text.length; i++) {
for (var i = 1; i < text.length; i++) {
if (text.charAt(i) === ' ') {
spaceIndex = i;
}

Loading…
Cancel
Save