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:
parent
5a3401ee5b
commit
7c1d27ae5f
@ -1 +1 @@
|
||||
2fc7d68b67ae47fd952c4409f1c1a6227e2bb648
|
||||
2710768e040c77ffa125c63d4951de6620686cc0
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user