mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
fix tooltip with array returns
This commit is contained in:
parent
44e4004589
commit
f106e1bf2d
@ -86,7 +86,8 @@ module.exports = function(Chart) {
|
|||||||
function pushOrConcat(base, toPush) {
|
function pushOrConcat(base, toPush) {
|
||||||
if (toPush) {
|
if (toPush) {
|
||||||
if (helpers.isArray(toPush)) {
|
if (helpers.isArray(toPush)) {
|
||||||
base = base.concat(toPush);
|
//base = base.concat(toPush);
|
||||||
|
Array.prototype.push.apply(base, toPush);
|
||||||
} else {
|
} else {
|
||||||
base.push(toPush);
|
base.push(toPush);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user