Skip to content

Commit

Permalink
Fix: Update for deprecated functions in jQuery 3.3 - specifically rem…
Browse files Browse the repository at this point in the history
…ove use of `$.isNumeric`
  • Loading branch information
Allan Jardine committed May 11, 2018
1 parent 1bfe0aa commit 1c13e11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/dataTables.autoFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,10 @@ $.extend( AutoFill.prototype, {
AutoFill.actions = {
increment: {
available: function ( dt, cells ) {
return $.isNumeric( cells[0][0].label );
var d = cells[0][0].label;

// is numeric test based on jQuery's old `isNumeric` function
return !isNaN( d - parseFloat( d ) );
},

option: function ( dt, cells ) {
Expand Down

0 comments on commit 1c13e11

Please sign in to comment.