1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Dev: Disable syntax highlighting for IE8

This commit is contained in:
Allan Jardine 2016-01-22 11:25:51 +00:00
parent aec81fd557
commit ef7b2e13ec
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
48c1c8f45aa6fc3b32f907a3b1e638f5b303b965
4d9ea53371b084c1960e003a2f26d5d564879ad2

View File

@ -303,10 +303,10 @@ var sh = {
*/
highlight: function(globalParams, element)
{
// Don't run the syntax highlighter on IE6/7 as it absolutely kills
// Don't run the syntax highlighter on IE6/7/8 as it absolutely kills
// performance
var userAgent = navigator.appVersion;
if (userAgent.indexOf("MSIE 7.") !== -1 || userAgent.indexOf("MSIE 6.") !== -1) {
if (userAgent.indexOf("MSIE 8.") !== -1 || userAgent.indexOf("MSIE 7.") !== -1 || userAgent.indexOf("MSIE 6.") !== -1) {
return;
}