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);