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
parent
90802edc03
commit
c0feed41e9
|
@ -248,6 +248,8 @@ exports.relativeDate = function( data, value )
|
||||||
{
|
{
|
||||||
return _each( data, value, function( curdate, format )
|
return _each( data, value, function( curdate, format )
|
||||||
{
|
{
|
||||||
|
format = format || '';
|
||||||
|
|
||||||
var type = format.substr( -1 ),
|
var type = format.substr( -1 ),
|
||||||
tval = format.substr( 0, format.length - 1 ),
|
tval = format.substr( 0, format.length - 1 ),
|
||||||
ms = 0;
|
ms = 0;
|
||||||
|
|
Loading…
Reference in New Issue