mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Update: The _
option for columns.render as an object is optional now
- Previously when using columns.render as an object, you had to supply an `_` option which was the fallback. However, I've now made it so that if there is no `_` option it will just use the raw data from `columns.data`
This commit is contained in:
parent
e45f19eb60
commit
34c18509d8
@ -1 +1 @@
|
|||||||
dfdf6371182e92cc53cdac96a01ae9316c30702b
|
a7e482203d8a79d537f2bcffba763f852af12ce3
|
||||||
|
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -1091,7 +1091,10 @@
|
|||||||
} );
|
} );
|
||||||
|
|
||||||
return function (data, type, extra) {
|
return function (data, type, extra) {
|
||||||
return o[ o[type] !== undefined ? type : '_' ](data, type, extra);
|
var t = o[type] || o._;
|
||||||
|
return t !== undefined ?
|
||||||
|
t(data, type, extra) :
|
||||||
|
data;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if ( mSource === null )
|
else if ( mSource === null )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user