From 075ec52008f57bf48b285c3d70ecfb8b83bec8b0 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 5 Mar 2015 09:50:10 +0000 Subject: [PATCH] Fix - API: `sum()` method should have a default value --- api/sum().js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/sum().js b/api/sum().js index a024a34..0f41709 100644 --- a/api/sum().js +++ b/api/sum().js @@ -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 ); } );