1.9.0 IE9 bug Console is undefined

1.9.0 IE9 bug Console is undefined

jasheets1jasheets1 Posts: 10Questions: 0Answers: 0
edited February 2012 in General
I'm receiving a Console is undefined error on line 4535 when trying to use this example:
http://datatables.net/forums/discussion/comment/30496#Comment_30496

This appears to only happen in IE9 for me with the latest 1.9.0 release (and 1.9.1.dev).

I fixed it locally by changing line 4535 from this:
[code]
else if ( console !== undefined && console.log )
[/code]

to this:
[code]
else if ( typeof console !== "undefined" && console.log )
[/code]

Replies

  • jaylawjaylaw Posts: 4Questions: 0Answers: 0
    This exists in IE8 as well. I've applied the same patch and it does fix the problem.

    Now, if I can just figure out why my layout is generating a warning to the log, I'll be all set!
    http://www.datatables.net/forums/discussion/8445/layout-of-2-side-by-side-columns-w-scrolling-doesn039t-apply-styles-in-ie#Item_2
  • andrew2311andrew2311 Posts: 11Questions: 0Answers: 0
    Will this be fixed in a later release of datatables?
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    This should now be fixed in 1.9.1.dev ( http://datatables.net/download ) - sorry I forgot to update this thread when I committed the fix - there is another thread on the subject as well. So you can use the current nightly, or 1.9.1 should be out at the end of the month.

    Regards,
    Allan
This discussion has been closed.