commit/galaxy-central: guerler: Fix precision formatting in Circster
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/3f8f52fa01f8/ Changeset: 3f8f52fa01f8 User: guerler Date: 2013-08-08 10:10:36 Summary: Fix precision formatting in Circster Affected #: 1 file diff -r ba8330a9fdefe0431ee1869e3a60c55caebc937c -r 3f8f52fa01f807b624ce05ef2186284b947c2e34 static/scripts/viz/circster.js --- a/static/scripts/viz/circster.js +++ b/static/scripts/viz/circster.js @@ -85,10 +85,14 @@ */ formatNum: function(num, sigDigits) { // Use default of 2 sig. digits. - if (sigDigits === undefined) { + if (sigDigits === undefined) sigDigits = 2; - } - + + // Verify input number + if (num === null) + return null; + + // Calculate return value var rval = null; if (num < 1) { rval = num.toPrecision(sigDigits); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org