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

Dev fix: HTML-5 attr detection could provide undefined functions

- The HTML5 attribute detection for sorting, filtering etc was breaking
  if you didn't provide a filtering _and_ sorting attributes since they
  created an undefined get data function, which causes DataTables to
  complain. Fix is to just check for a null value.
This commit is contained in:
Allan Jardine 2013-09-23 11:45:14 +01:00
parent 5a3401ee5b
commit 7c1d27ae5f
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
2fc7d68b67ae47fd952c4409f1c1a6227e2bb648
2710768e040c77ffa125c63d4951de6620686cc0

View File

@ -795,7 +795,9 @@
/* Build an object of get functions, and wrap them in a single call */
var o = {};
$.each( mSource, function (key, val) {
o[key] = _fnGetObjectDataFn( val );
if ( val ) {
o[key] = _fnGetObjectDataFn( val );
}
} );
return function (data, type, extra) {