Fix - API: `sum()` method should have a default value

pull/171/head
Allan Jardine 10 years ago
parent 10bd484af4
commit 075ec52008

@ -31,6 +31,6 @@
jQuery.fn.dataTable.Api.register( 'sum()', function () {
return this.flatten().reduce( function ( a, b ) {
return (a*1) + (b*1); // cast values in-case they are strings
} );
}, 0 );
} );

Loading…
Cancel
Save