Some events can't be used with .on() (DataTables 1.10)
Some events can't be used with .on() (DataTables 1.10)
RagingTroll
Posts: 34Questions: 3Answers: 0
There are events like..
[code]_fnCallbackFire( oSettings, 'aoRowCallback', null, [nRow, aoData._aData, iRowCount, j] );[/code]
that do not have event names..
another one is
[code]_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );[/code]
so we can't use them with .on anymore.. any reason why this is so?
[code]_fnCallbackFire( oSettings, 'aoRowCallback', null, [nRow, aoData._aData, iRowCount, j] );[/code]
that do not have event names..
another one is
[code]_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );[/code]
so we can't use them with .on anymore.. any reason why this is so?
This discussion has been closed.
Replies
?
These two callbacks have never fired events - at least they shouldn't have! jQuery DOM events are actually very slow (in the grand scheme of things) as they propagate up the DOM tree, so adding events to these two callbacks would significantly slow down DataTables execution. That's basically the only reason - events are slow, callbacks fast :-).
Allan