Hello, after upgrading from 1.8.2 to 1.9.1 I have noticed that an error pops up in what seems to be a problem fetching the datatables translation file. Im not sure to how it extents but to me it appears inside _fnInfoMacros saying it is trying to do a .replace on a null value. It is called from this context, so sZero is null.
The funny thing is that if I set a breakpoint before var sZero = oLang.sZeroRecords and move forward step by step then the value is set correctly. It seems oLang is not ready as soon as datatables try to use it. It works well in 1.8. Maybe it's a bug? Upgrade notes don't say anything about changes in internationalization. Im using Firefox 11. Thanks!
var oLang = oSettings.oLanguage; var sZero = oLang.sZeroRecords; if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide ) { sZero = oLang.sLoadingRecords; } else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 ) { sZero = oLang.sEmptyTable; } var nTd = document.createElement( 'td' ); nTd.setAttribute( 'valign', "top" ); nTd.colSpan = _fnVisbleColumns( oSettings ); nTd.className = oSettings.oClasses.sRowEmpty; nTd.innerHTML = _fnInfoMacros( oSettings, sZero );
The funny thing is that if I set a breakpoint before var sZero = oLang.sZeroRecords and move forward step by step then the value is set correctly. It seems oLang is not ready as soon as datatables try to use it. It works well in 1.8. Maybe it's a bug? Upgrade notes don't say anything about changes in internationalization. Im using Firefox 11. Thanks!