mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
846c4d9c60
- Some plug-ins would benefit from be able to automatically initialise when a DataTables is constructed, to this end, a construct for static events is added here, with the static function $.fn.dataTable.on() listening for events. Currently only the `construct` method is available, although others could potentially be added in future if they are useful. As such, the code driving it is intentionally simple for this cas,e but the API abstract enough to allow future expansion. - There is no `off()` method, as I'm not sure it would be that useful. Could be added in future if needed!