mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Merge pull request #1738 from nnnick/fix/1735
Call `beforeBody` and `afterBody` using the correct function.
This commit is contained in:
commit
784fa78267
@ -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];
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user