From dd371c0f57d07ed6cdf61611ed6df7513f1aa8ad Mon Sep 17 00:00:00 2001 From: Oskar Risberg Date: Mon, 13 Oct 2014 17:16:20 +0200 Subject: [PATCH] Fix zero length string radix in old versions of IE8 --- odometer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/odometer.js b/odometer.js index dcf926c..8a207c9 100644 --- a/odometer.js +++ b/odometer.js @@ -270,6 +270,9 @@ } _ref1 = parsed.slice(1, 4), repeating = _ref1[0], radix = _ref1[1], fractional = _ref1[2]; precision = (fractional != null ? fractional.length : void 0) || 0; + if( typeof radix === "string" && radix.length === 0 ){ + radix = null; + } return this.format = { repeating: repeating, radix: radix,