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
f8f7255a
Commit
f8f7255a
authored
Jun 06, 2015
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove resize_timeout option
parent
5afa4904
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
22 deletions
+12
-22
c3.js
c3.js
+6
-11
c3.min.js
c3.min.js
+0
-0
config.js
src/config.js
+0
-1
core.js
src/core.js
+6
-10
No files found.
c3.js
View file @
f8f7255a
...
...
@@ -931,17 +931,13 @@
});
if
(
config
.
resize_auto
)
{
$$
.
resizeFunction
.
add
(
function
()
{
if
(
config
.
resize_timeout
)
{
if
(
$$
.
resizeTimeout
!==
undefined
)
{
window
.
clearTimeout
(
$$
.
resizeTimeout
);
}
$$
.
resizeTimeout
=
window
.
setTimeout
(
function
()
{
delete
$$
.
resizeTimeout
;
$$
.
api
.
flush
();
},
config
.
resize_timeout
);
}
else
{
$$
.
api
.
flush
();
if
(
$$
.
resizeTimeout
!==
undefined
)
{
window
.
clearTimeout
(
$$
.
resizeTimeout
);
}
$$
.
resizeTimeout
=
window
.
setTimeout
(
function
()
{
delete
$$
.
resizeTimeout
;
$$
.
api
.
flush
();
},
100
);
});
}
$$
.
resizeFunction
.
add
(
function
()
{
...
...
@@ -1066,7 +1062,6 @@
padding_top
:
undefined
,
padding_bottom
:
undefined
,
resize_auto
:
true
,
resize_timeout
:
100
,
zoom_enabled
:
false
,
zoom_extent
:
undefined
,
zoom_privileged
:
false
,
...
...
c3.min.js
View file @
f8f7255a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/config.js
View file @
f8f7255a
...
...
@@ -8,7 +8,6 @@ c3_chart_internal_fn.getDefaultConfig = function () {
padding_top
:
undefined
,
padding_bottom
:
undefined
,
resize_auto
:
true
,
resize_timeout
:
100
,
zoom_enabled
:
false
,
zoom_extent
:
undefined
,
zoom_privileged
:
false
,
...
...
src/core.js
View file @
f8f7255a
...
...
@@ -926,17 +926,13 @@ c3_chart_internal_fn.bindResize = function () {
});
if
(
config
.
resize_auto
)
{
$$
.
resizeFunction
.
add
(
function
()
{
if
(
config
.
resize_timeout
)
{
if
(
$$
.
resizeTimeout
!==
undefined
)
{
window
.
clearTimeout
(
$$
.
resizeTimeout
);
}
$$
.
resizeTimeout
=
window
.
setTimeout
(
function
()
{
delete
$$
.
resizeTimeout
;
$$
.
api
.
flush
();
},
config
.
resize_timeout
);
}
else
{
$$
.
api
.
flush
();
if
(
$$
.
resizeTimeout
!==
undefined
)
{
window
.
clearTimeout
(
$$
.
resizeTimeout
);
}
$$
.
resizeTimeout
=
window
.
setTimeout
(
function
()
{
delete
$$
.
resizeTimeout
;
$$
.
api
.
flush
();
},
100
);
});
}
$$
.
resizeFunction
.
add
(
function
()
{
...
...
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