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

Fix: Cell selector, when operating as a jQuery selector needs to return

an array, not a jQuery object - otherwise IE8- throws an error

- This fixes DataTables/DataTables #262
This commit is contained in:
Allan Jardine 2014-03-03 10:19:21 +00:00
parent 7c8e10d0dd
commit a9687655ea
2 changed files with 11 additions and 8 deletions

View File

@ -1 +1 @@
dc21e8db04d98fd6fdd03d3308cb02cb367ee939
6ce73e2332ab123287d3333b965c0abdc038f93c

View File

@ -8021,14 +8021,17 @@
}
// jQuery filtered cells
return allCells.filter( s ).map( function (i, el) {
row = el.parentNode._DT_RowIndex;
return allCells
.filter( s )
.map( function (i, el) {
row = el.parentNode._DT_RowIndex;
return {
row: row,
column: $.inArray( el, data[ row ].anCells )
};
} );
return {
row: row,
column: $.inArray( el, data[ row ].anCells )
};
} )
.toArray();
} );
};