prevent error in IE8 - fixes issue #246

This commit is contained in:
Mottie 2013-02-23 23:59:27 -06:00
parent e5483f3d49
commit 7b672d678b

View File

@ -963,7 +963,7 @@
ts.getTextValue = function(a, mx, d) {
if (mx) {
// make sure the text value is greater than the max numerical value (mx)
var i, l = a.length, n = mx + d;
var i, l = a ? a.length : 0, n = mx + d;
for (i = 0; i < l; i++) {
n += a.charCodeAt(i);
}