_fnStringToCss handling for an object
_fnStringToCss handling for an object
wkrzystek
Posts: 2Questions: 0Answers: 0
Using Jquery 1.8.2 and datatables 1.9.4, ran into a bug where my column header widths weren't matching the column widths of the table. It was crashing on line 3879 where s didn't have a method charCodeAt. In debugging, s was being passed as an object.
My fix was to add:
[code]
if (typeof s == 'object') {
return s;
}
[/code]
I'm not sure I can figure out exactly why but this was the value of s:
s: jQuery.fn.jQuery.init[1]
0: table.grdDataTable dataTable
context: table.grdDataTable dataTable
length: 1
__proto__: Object[0]
My fix was to add:
[code]
if (typeof s == 'object') {
return s;
}
[/code]
I'm not sure I can figure out exactly why but this was the value of s:
s: jQuery.fn.jQuery.init[1]
0: table.grdDataTable dataTable
context: table.grdDataTable dataTable
length: 1
__proto__: Object[0]
This discussion has been closed.
Replies
Allan
Allan