]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix tooltip with array returns 2776/head
authorEvert Timberg <evert.timberg+github@gmail.com>
Tue, 14 Jun 2016 23:19:15 +0000 (19:19 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 14 Jun 2016 23:19:15 +0000 (19:19 -0400)
src/core/core.tooltip.js

index e21934140515152c23e0100241213af1d9a2c29a..d55dd2be050c3cb86d892765a93b50b1b60b892d 100755 (executable)
@@ -86,7 +86,8 @@ module.exports = function(Chart) {
        function pushOrConcat(base, toPush) {
                if (toPush) {
                        if (helpers.isArray(toPush)) {
-                               base = base.concat(toPush);
+                               //base = base.concat(toPush);
+                               Array.prototype.push.apply(base, toPush);
                        } else {
                                base.push(toPush);
                        }