From: Evert Timberg Date: Thu, 3 Dec 2015 23:46:21 +0000 (-0500) Subject: Call `beforeBody` and `afterBody` using the correct function. X-Git-Tag: 2.0.0-beta2~32^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1738%2Fhead;p=thirdparty%2FChart.js.git Call `beforeBody` and `afterBody` using the correct function. --- diff --git a/src/core/core.tooltip.js b/src/core/core.tooltip.js index 164a0a8bb..47f196149 100644 --- a/src/core/core.tooltip.js +++ b/src/core/core.tooltip.js @@ -153,7 +153,7 @@ // Args are: (tooltipItem, data) getBeforeBody: function() { - var lines = this._options.tooltips.callbacks.beforeBody.call(this, arguments); + var lines = this._options.tooltips.callbacks.beforeBody.apply(this, arguments); return helpers.isArray(lines) ? lines : [lines]; }, @@ -174,7 +174,7 @@ // Args are: (tooltipItem, data) getAfterBody: function() { - var lines = this._options.tooltips.callbacks.afterBody.call(this, arguments); + var lines = this._options.tooltips.callbacks.afterBody.apply(this, arguments); return helpers.isArray(lines) ? lines : [lines]; },