mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
prevent error in IE8 - fixes issue #246
This commit is contained in:
parent
e5483f3d49
commit
7b672d678b
@ -963,7 +963,7 @@
|
|||||||
ts.getTextValue = function(a, mx, d) {
|
ts.getTextValue = function(a, mx, d) {
|
||||||
if (mx) {
|
if (mx) {
|
||||||
// make sure the text value is greater than the max numerical value (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++) {
|
for (i = 0; i < l; i++) {
|
||||||
n += a.charCodeAt(i);
|
n += a.charCodeAt(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user