From: Robert Becker Date: Fri, 5 Feb 2016 08:43:20 +0000 (+0100) Subject: Fixed tab sizing in core.helpers.js X-Git-Tag: v2.0.0~49^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1692b977cdcd4429b834c78fd7d7a53af99e949b;p=thirdparty%2FChart.js.git Fixed tab sizing in core.helpers.js --- diff --git a/Chart.js b/Chart.js index def72e0dd..0bbcf3b1e 100644 --- a/Chart.js +++ b/Chart.js @@ -973,16 +973,16 @@ isDatasetVisible = helpers.isDatasetVisible = function(dataset) { return !dataset.hidden; }, - pushAllIfDefined = helpers.pushAllIfDefined = function(element, array) { - if (typeof element == "undefined") { - return; - } - - if (isArray(element)) { - array.push.apply(array, element); - } else { - array.push(element); - } + pushAllIfDefined = helpers.pushAllIfDefined = function(element, array) { + if (typeof element == "undefined") { + return; + } + + if (isArray(element)) { + array.push.apply(array, element); + } else { + array.push(element); + } }; }).call(this); diff --git a/src/core/core.helpers.js b/src/core/core.helpers.js index 781b4875e..68ebf18f3 100644 --- a/src/core/core.helpers.js +++ b/src/core/core.helpers.js @@ -844,15 +844,15 @@ isDatasetVisible = helpers.isDatasetVisible = function(dataset) { return !dataset.hidden; }, - pushAllIfDefined = helpers.pushAllIfDefined = function(element, array) { - if (typeof element == "undefined") { - return; - } - - if (isArray(element)) { - array.push.apply(array, element); - } else { - array.push(element); - } + pushAllIfDefined = helpers.pushAllIfDefined = function(element, array) { + if (typeof element == "undefined") { + return; + } + + if (isArray(element)) { + array.push.apply(array, element); + } else { + array.push(element); + } }; }).call(this);