diff --git a/src/base/single/text.js b/src/base/single/text.js index ace85aec91..823843bfcd 100644 --- a/src/base/single/text.js +++ b/src/base/single/text.js @@ -162,8 +162,10 @@ formatters.push(formatter); }; BI.Text.formatText = function (text) { - for (var i = 0, len = formatters.length; i < len; i++) { - text = formatters[i](text); + if (formatters.length > 0) { + for (var i = 0, len = formatters.length; i < len; i++) { + text = formatters[i](text); + } } return text; };