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:
parent
597b0c0b74
commit
f63d04583c
@ -1 +1 @@
|
||||
c7c8324813f0334a14315524d759d18f087c648b
|
||||
8544842d7637d7da707b5674f4113eec345081f3
|
||||
|
6
media/js/jquery.dataTables.js
vendored
6
media/js/jquery.dataTables.js
vendored
@ -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 ) :
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user