Update c3.js and c3.min.js

parent 67e42cd5
......@@ -135,10 +135,10 @@
/**
* Adds callback to main queue and starts timer
* @function onfinish
* @function onFinish
* @param {Function} callback
*/
Buffer.prototype.onfinish = function(callback){
Buffer.prototype.onFinish = function(callback){
var self = this;
self.start();
self.callbacks.push(callback);
......@@ -146,11 +146,11 @@
/**
* Adds named callback to queue and starts timer. Only last callback with given id will be called
* @function onlastfinish
* @function onLastFinish
* @param {String} id of callback
* @param {Function} callback
*/
Buffer.prototype.onlastfinish = function(id, callback){
Buffer.prototype.onLastFinish = function(id, callback){
var self = this;
self.start();
self.namedCallbacks[id] = callback;
......@@ -161,7 +161,7 @@
* @function afterFinish
* @param {Function} callback
*/
Buffer.prototype.afterfinish = function(callback){
Buffer.prototype.afterFinish = function(callback){
var self = this;
self.start();
self.lastCallbacks.push(callback);
......@@ -5085,8 +5085,8 @@
if(sync){
apply();
} else {
$$.buffer.onlastfinish("tune-axis" + $$.config.isSub, apply);
$$.buffer.onlastfinish("cached-redraw" + $$.config.isSub, function(){});
$$.buffer.onLastFinish("tune-axis" + $$.config.isSub, apply);
$$.buffer.onLastFinish("cached-redraw" + $$.config.isSub, function(){});
}
};
......@@ -5716,8 +5716,8 @@
.style("opacity", $$.hasType('donut') || $$.hasType('gauge') ? 1 : 0);
if(($$.config.hasSubs || $$.config.isSub)){
$$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){
$$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){
$$.buffer.onLastFinish("draw-lines"+$$.config.isSub, function(){
$$.buffer.onLastFinish("draw-lines"+$$.config.isSub, function(){
$$.ed3Internal.redrawLinesOnBoth();
$$.ed3Internal.redrawLinesOnBoth();
});
......@@ -6460,7 +6460,7 @@
if($$.config.shouldCache){
if(!$$.buffer.has("tune-axis" + $$.config.isSub)){
$$.buffer.onlastfinish("cached-redraw" + $$.config.isSub,
$$.buffer.onLastFinish("cached-redraw" + $$.config.isSub,
function(){
$$.resolveDraw(options);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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