From 5bfd60b54bc79888d05ea00dbac44ac14118cf57 Mon Sep 17 00:00:00 2001 From: zurbchris Date: Tue, 17 Nov 2015 18:22:28 -0800 Subject: [PATCH] updates getYoDigits to not require arguments --- js/foundation.core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/foundation.core.js b/js/foundation.core.js index 5fe2c7831..75bf26d28 100644 --- a/js/foundation.core.js +++ b/js/foundation.core.js @@ -132,6 +132,7 @@ var Foundation = { * @returns {String} - unique id */ GetYoDigits: function(length, namespace){ + length = length || 6; return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1) + (namespace ? '-' + namespace : ''); }, /** -- 2.47.2