1
0
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:
Allan Jardine 2014-03-07 11:46:08 +00:00
parent e45f19eb60
commit 34c18509d8
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
dfdf6371182e92cc53cdac96a01ae9316c30702b
a7e482203d8a79d537f2bcffba763f852af12ce3

View File

@ -1091,7 +1091,10 @@
} );
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 )