1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11: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:
Allan Jardine 2014-03-19 10:53:56 +00:00
parent d271fac5b6
commit b5228162a7
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
2380313b30b913d6909d88166fc77746a019e717
0bc427ba863a2bd355b59629bd82281cc81e4d28

View File

@ -5395,7 +5395,7 @@
return col !== undefined || type == 'td' || type == 'th' ?
api.cell( src, col ).data() :
api.row( src ).data();
api.row( src ).data() || null;
}
return api.data().flatten().toArray();