DataTables / Responsive

Responsive extension for DataTables, providing support for complex tables on all device screen sizes
Other
148 stars 86 forks source link

jQuery.fn.blur() event shorthand is deprecated #116

Closed bytestream closed 4 years ago

bytestream commented 4 years ago

jQuery.fn.blur() event shorthand is deprecated

https://github.com/DataTables/Responsive/blob/2.2.3/js/dataTables.responsive.js#L672

Fix:

Replace .blur() with .trigger('blur')

https://github.com/jquery/jquery-migrate/blob/master/warnings.md#jqmigrate-jqueryfnclick-event-shorthand-is-deprecated

.trigger() has been around since 1.0 so shouldn't be any compatibility issues. Ref: https://api.jquery.com/trigger/

DataTables commented 4 years ago

Thanks! Fixed here: https://github.com/DataTables/Responsive/commit/d2c060e2467c487bdb2d139449ee27d7005d133a .