Some events can't be used with .on() (DataTables 1.10)

Some events can't be used with .on() (DataTables 1.10)

RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
edited January 2014 in General
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?

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    > anymore

    ?

    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
  • RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
    alright, thanks for clarifying! :)
This discussion has been closed.