Change buffer methods name to camelCase

parent 3ffa7418
......@@ -299,8 +299,8 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
.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();
});
......
......@@ -415,8 +415,8 @@ c3_chart_internal_fn.tuneAxis = function(sync, callback){
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(){});
}
};
......
......@@ -130,10 +130,10 @@ Buffer.prototype.finishAll = function(){
/**
* 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);
......@@ -141,11 +141,11 @@ Buffer.prototype.onfinish = function(callback){
/**
* 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;
......@@ -156,7 +156,7 @@ Buffer.prototype.onlastfinish = function(id, callback){
* @function afterFinish
* @param {Function} callback
*/
Buffer.prototype.afterfinish = function(callback){
Buffer.prototype.afterFinish = function(callback){
var self = this;
self.start();
self.lastCallbacks.push(callback);
......
......@@ -40,7 +40,7 @@ c3.chart.internal.fn.cachedRedraw = function(options, callback){
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);
}
......
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