v1.9 console.log issue
v1.9 console.log issue
adamlevy
Posts: 1Questions: 0Answers: 0
I think the test for whether to use console.log on line 4539 needs some tweaking. It results in an error in IE8 (8.0.6001.18702 on WinXP).
Instead of: [code]else if ( console !== undefined && console.log )[/code]
Try: [code]else if ( window.console && console.log )[/code]
NOTE: I haven't tested that on older versions of IE, but I'm pretty sure it's correct. Regardless, the current implementation breaks in IE8.
Instead of: [code]else if ( console !== undefined && console.log )[/code]
Try: [code]else if ( window.console && console.log )[/code]
NOTE: I haven't tested that on older versions of IE, but I'm pretty sure it's correct. Regardless, the current implementation breaks in IE8.
This discussion has been closed.
Replies
Thanks very much for posting this and the fix :-). I've just committed it in and it will be in the 1.9.1 release, and is now available as the 1.9.1.dev nightly: http://datatables.net/download/ .
Regards,
Allan