From 9a3bdacce68ed96782d7166f2bec23a7167c56c1 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 4 Mar 2014 08:53:08 +0000 Subject: [PATCH] Fix: IE8 - Settings as an API selector needs to return as an array --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 7f839c5b..c934d4b4 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -6e5c2b6800f6a3014f33455491f2186cf00b0b82 +b2515d8588a7eda47b67c43442c0a1bcdf0bca47 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 6768176f..6086051c 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -6289,7 +6289,7 @@ return idx !== -1 ? [ settings[idx] ] : null; } else if ( mixed && typeof mixed.settings === 'function' ) { - return mixed.settings(); + return mixed.settings().toArray(); } else if ( typeof mixed === 'string' ) { // jQuery selector @@ -6374,6 +6374,7 @@ var settings = []; var ctxSettings = function ( o ) { var a = _toSettings( o ); + console.log( a ); if ( a ) { settings.push.apply( settings, a ); }