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

Fix: IE8 - Settings as an API selector needs to return as an array

This commit is contained in:
Allan Jardine 2014-03-04 08:53:08 +00:00
parent 39828e8bab
commit 9a3bdacce6
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
6e5c2b6800f6a3014f33455491f2186cf00b0b82
b2515d8588a7eda47b67c43442c0a1bcdf0bca47

View File

@ -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 );
}