]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Call `beforeBody` and `afterBody` using the correct function. 1738/head
authorEvert Timberg <evert.timberg@gmail.com>
Thu, 3 Dec 2015 23:46:21 +0000 (18:46 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Thu, 3 Dec 2015 23:46:21 +0000 (18:46 -0500)
src/core/core.tooltip.js

index 164a0a8bb821232d6b33e93aacf6e275c29d658f..47f196149736f0e9aa1a1ae4d355ba42fdd13a80 100644 (file)
 
                // 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];
                },
 
 
                // 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];
                },