v1.9 console.log issue

v1.9 console.log issue

adamlevyadamlevy Posts: 1Questions: 0Answers: 0
edited February 2012 in DataTables 1.9
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.

Replies

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Hi,

    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
This discussion has been closed.