]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed tab sizing in core.helpers.js
authorRobert Becker <robert@rbecker.eu>
Fri, 5 Feb 2016 08:43:20 +0000 (09:43 +0100)
committerRobert Becker <robert@rbecker.eu>
Fri, 5 Feb 2016 08:43:20 +0000 (09:43 +0100)
Chart.js
src/core/core.helpers.js

index def72e0dd869114be6bebec89e2e9641ec506582..0bbcf3b1e0651dfb4c579fe397a2775afd4da896 100644 (file)
--- a/Chart.js
+++ b/Chart.js
                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);
 
index 781b4875e5229b55627fdc5619262b7d0776030d..68ebf18f3eb20af5060c17a653b27f7e7d9390f2 100644 (file)
                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);