Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
18fcc2d6
Commit
18fcc2d6
authored
Sep 20, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #537 from jkuchta/master
Changed .class properties to ['class'] to prevent IE8 JS errors, IE8 tre...
parents
ee9abc92
9e485963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
c3.js
c3.js
+6
-6
No files found.
c3.js
View file @
18fcc2d6
...
@@ -3213,7 +3213,7 @@
...
@@ -3213,7 +3213,7 @@
.
data
(
config
.
grid_x_lines
);
.
data
(
config
.
grid_x_lines
);
// enter
// enter
xgridLine
=
$$
.
xgridLines
.
enter
().
append
(
'g'
)
xgridLine
=
$$
.
xgridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
xgridLine
+
(
d
[
"class"
]
?
' '
+
d
[
"class"
]
:
''
);
});
xgridLine
.
append
(
'line'
)
xgridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
.
style
(
"opacity"
,
0
);
xgridLine
.
append
(
'text'
)
xgridLine
.
append
(
'text'
)
...
@@ -3238,7 +3238,7 @@
...
@@ -3238,7 +3238,7 @@
.
data
(
config
.
grid_y_lines
);
.
data
(
config
.
grid_y_lines
);
// enter
// enter
ygridLine
=
$$
.
ygridLines
.
enter
().
append
(
'g'
)
ygridLine
=
$$
.
ygridLines
.
enter
().
append
(
'g'
)
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
.
class
?
' '
+
d
.
class
:
''
);
});
.
attr
(
"class"
,
function
(
d
)
{
return
CLASS
.
ygridLine
+
(
d
[
"class"
]
?
' '
+
d
[
"class"
]
:
''
);
});
ygridLine
.
append
(
'line'
)
ygridLine
.
append
(
'line'
)
.
style
(
"opacity"
,
0
);
.
style
(
"opacity"
,
0
);
ygridLine
.
append
(
'text'
)
ygridLine
.
append
(
'text'
)
...
@@ -3331,7 +3331,7 @@
...
@@ -3331,7 +3331,7 @@
return
params
?
function
(
line
)
{
return
params
?
function
(
line
)
{
var
found
=
false
;
var
found
=
false
;
[].
concat
(
params
).
forEach
(
function
(
param
)
{
[].
concat
(
params
).
forEach
(
function
(
param
)
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
.
class
===
params
.
class
)))
{
if
(((
'value'
in
param
&&
line
.
value
===
params
.
value
)
||
(
'class'
in
param
&&
line
[
"class"
]
===
params
[
"class"
]
)))
{
found
=
true
;
found
=
true
;
}
}
});
});
...
@@ -5233,7 +5233,7 @@
...
@@ -5233,7 +5233,7 @@
return
this
.
classShapes
(
d
)
+
this
.
generateClass
(
CLASS
.
areas
,
d
.
id
);
return
this
.
classShapes
(
d
)
+
this
.
generateClass
(
CLASS
.
areas
,
d
.
id
);
};
};
c3_chart_internal_fn
.
classRegion
=
function
(
d
,
i
)
{
c3_chart_internal_fn
.
classRegion
=
function
(
d
,
i
)
{
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
.
class
:
''
);
return
this
.
generateClass
(
CLASS
.
region
,
i
)
+
' '
+
(
'class'
in
d
?
d
[
"class"
]
:
''
);
};
};
c3_chart_internal_fn
.
classEvent
=
function
(
d
)
{
c3_chart_internal_fn
.
classEvent
=
function
(
d
)
{
return
this
.
generateClass
(
CLASS
.
eventRect
,
d
.
index
);
return
this
.
generateClass
(
CLASS
.
eventRect
,
d
.
index
);
...
@@ -5917,10 +5917,10 @@
...
@@ -5917,10 +5917,10 @@
config
.
regions
=
config
.
regions
.
filter
(
function
(
region
)
{
config
.
regions
=
config
.
regions
.
filter
(
function
(
region
)
{
var
found
=
false
;
var
found
=
false
;
if
(
!
region
.
class
)
{
if
(
!
region
[
"class"
]
)
{
return
true
;
return
true
;
}
}
region
.
class
.
split
(
' '
).
forEach
(
function
(
c
)
{
region
[
"class"
]
.
split
(
' '
).
forEach
(
function
(
c
)
{
if
(
classes
.
indexOf
(
c
)
>=
0
)
{
found
=
true
;
}
if
(
classes
.
indexOf
(
c
)
>=
0
)
{
found
=
true
;
}
});
});
return
!
found
;
return
!
found
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment