mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Fix DataTables/TableTools #46 - fnGetData should return null if row not
found - The old fnGetData method would return null, rather than undefined for some reason if a given row was not found in the DataTable. The new wrapper api for the legacy interface should do the same.
This commit is contained in:
parent
d271fac5b6
commit
b5228162a7
@ -1 +1 @@
|
|||||||
2380313b30b913d6909d88166fc77746a019e717
|
0bc427ba863a2bd355b59629bd82281cc81e4d28
|
||||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -5395,7 +5395,7 @@
|
|||||||
|
|
||||||
return col !== undefined || type == 'td' || type == 'th' ?
|
return col !== undefined || type == 'td' || type == 'th' ?
|
||||||
api.cell( src, col ).data() :
|
api.cell( src, col ).data() :
|
||||||
api.row( src ).data();
|
api.row( src ).data() || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return api.data().flatten().toArray();
|
return api.data().flatten().toArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user