Commit 3a55f7df authored by Masayuki Tanaka's avatar Masayuki Tanaka

Add done callback for unload - #182

parent b8b89a6e
...@@ -4233,9 +4233,10 @@ ...@@ -4233,9 +4233,10 @@
} }
}; };
c3.unload = function (targetIds) { c3.unload = function (targetIds, done) {
unload(mapToTargetIds(targetIds), function () { unload(mapToTargetIds(targetIds), function () {
redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true}); redraw({withUpdateOrgXDomain: true, withUpdateXDomain: true, withLegend: true});
if (typeof done === 'function') { done(); }
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment