1
0
Fork 0

src/calc/Calc.js (relativeDate): Default format to empty string

We shouldn't throw errors given an empty array for this value.

* src/calc/Calc.js (relativeDate): Default `format' in `_each' call.
master
Mike Gerwitz 2019-04-26 11:02:48 -04:00
parent 90802edc03
commit c0feed41e9
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ exports.relativeDate = function( data, value )
{
return _each( data, value, function( curdate, format )
{
format = format || '';
var type = format.substr( -1 ),
tval = format.substr( 0, format.length - 1 ),
ms = 0;