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
01aa08ac
Commit
01aa08ac
authored
Mar 14, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip mouseout event when chart is destroyed - #997
parent
e3c291fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
c3.js
c3.js
+2
-0
c3.min.js
c3.min.js
+0
-0
interaction.js
src/interaction.js
+2
-0
No files found.
c3.js
View file @
01aa08ac
...
@@ -2355,6 +2355,7 @@
...
@@ -2355,6 +2355,7 @@
})
})
.
on
(
'mouseout'
,
function
(
d
)
{
.
on
(
'mouseout'
,
function
(
d
)
{
var
index
=
d
.
index
;
var
index
=
d
.
index
;
if
(
!
$$
.
config
)
{
return
;
}
// chart is destroyed
if
(
$$
.
hasArcType
())
{
return
;
}
if
(
$$
.
hasArcType
())
{
return
;
}
$$
.
hideXGridFocus
();
$$
.
hideXGridFocus
();
$$
.
hideTooltip
();
$$
.
hideTooltip
();
...
@@ -2466,6 +2467,7 @@
...
@@ -2466,6 +2467,7 @@
.
attr
(
'height'
,
$$
.
height
)
.
attr
(
'height'
,
$$
.
height
)
.
attr
(
'class'
,
CLASS
.
eventRect
)
.
attr
(
'class'
,
CLASS
.
eventRect
)
.
on
(
'mouseout'
,
function
()
{
.
on
(
'mouseout'
,
function
()
{
if
(
!
$$
.
config
)
{
return
;
}
// chart is destroyed
if
(
$$
.
hasArcType
())
{
return
;
}
if
(
$$
.
hasArcType
())
{
return
;
}
mouseout
();
mouseout
();
})
})
...
...
c3.min.js
View file @
01aa08ac
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/interaction.js
View file @
01aa08ac
...
@@ -130,6 +130,7 @@ c3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {
...
@@ -130,6 +130,7 @@ c3_chart_internal_fn.generateEventRectsForSingleX = function (eventRectEnter) {
})
})
.
on
(
'mouseout'
,
function
(
d
)
{
.
on
(
'mouseout'
,
function
(
d
)
{
var
index
=
d
.
index
;
var
index
=
d
.
index
;
if
(
!
$$
.
config
)
{
return
;
}
// chart is destroyed
if
(
$$
.
hasArcType
())
{
return
;
}
if
(
$$
.
hasArcType
())
{
return
;
}
$$
.
hideXGridFocus
();
$$
.
hideXGridFocus
();
$$
.
hideTooltip
();
$$
.
hideTooltip
();
...
@@ -241,6 +242,7 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter)
...
@@ -241,6 +242,7 @@ c3_chart_internal_fn.generateEventRectsForMultipleXs = function (eventRectEnter)
.
attr
(
'height'
,
$$
.
height
)
.
attr
(
'height'
,
$$
.
height
)
.
attr
(
'class'
,
CLASS
.
eventRect
)
.
attr
(
'class'
,
CLASS
.
eventRect
)
.
on
(
'mouseout'
,
function
()
{
.
on
(
'mouseout'
,
function
()
{
if
(
!
$$
.
config
)
{
return
;
}
// chart is destroyed
if
(
$$
.
hasArcType
())
{
return
;
}
if
(
$$
.
hasArcType
())
{
return
;
}
mouseout
();
mouseout
();
})
})
...
...
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