* Provide backwards compatibility for column options. Note that the new options * are mapped onto the old parameters, so this is an external interface change * only. * @param {object} init Object to map
(init)
| 1804 | * @param {object} init Object to map |
| 1805 | */ |
| 1806 | function _fnCompatCols(init) { |
| 1807 | _fnCompatMap(init, "orderable", "bSortable") |
| 1808 | _fnCompatMap(init, "orderData", "aDataSort") |
| 1809 | _fnCompatMap(init, "orderSequence", "asSorting") |
| 1810 | _fnCompatMap(init, "orderDataType", "sortDataType") |
| 1811 | |
| 1812 | // orderData can be given as an integer |
| 1813 | var dataSort = init.aDataSort |
| 1814 | if (typeof dataSort === "number" && !Array.isArray(dataSort)) { |
| 1815 | init.aDataSort = [dataSort] |
| 1816 | } |
| 1817 | } |
| 1818 | |
| 1819 | /** |
| 1820 | * Browser feature detection for capabilities, quirks |
no test coverage detected