1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Fix thread 20096 - Visible column index selector

- The column index selector was broken by a previous commit (d9f416232).
- Fix also an error in the column selector whereby a result was being
  tested against itself
This commit is contained in:
Allan Jardine 2014-04-28 09:36:11 +01:00
parent 597b0c0b74
commit f63d04583c
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
c7c8324813f0334a14315524d759d18f087c648b
8544842d7637d7da707b5674f4113eec345081f3

View File

@ -7284,7 +7284,9 @@
out = [], res,
a, i, ien, j, jen;
if ( ! selector || selector.length === undefined ) {
// Can't just check for isArray here, as an API or jQuery instance might be
// given with their array like look
if ( ! selector || typeof selector === 'string' || selector.length === undefined ) {
selector = [ selector ];
}
@ -7836,7 +7838,7 @@
];
}
else {
var match = typeof match === 'string' ?
var match = typeof s === 'string' ?
s.match( __re_column_selector ) :
'';