mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-02 14:24:11 +01:00
Fixed: fnDrawCallback was actually the first of the draw callback functions that was called (the internal callbacks were called later). This was incorrect and we now loop over the array to get the order we want. At some point in future it might be required to have an ordering if these draw callbacks become interdependant.
This commit is contained in:
parent
65b7c9b1e6
commit
83c0ab8888
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -3165,7 +3165,7 @@
|
||||
}
|
||||
|
||||
/* Call all required callback functions for the end of a draw */
|
||||
for ( i=0, iLen=oSettings.aoDrawCallback.length ; i<iLen ; i++ )
|
||||
for ( i=oSettings.aoDrawCallback.length-1 ; i>=0 ; i-- )
|
||||
{
|
||||
oSettings.aoDrawCallback[i].fn.call( oSettings.oInstance, oSettings );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user