Fixed the merging

This commit is contained in:
Ionică Bizău 2015-05-28 21:32:57 +03:00
parent 03190c52d0
commit f13b9395f8

View file

@ -155,11 +155,9 @@ GitStats.iterateDays = function (data, callback) {
} }
// Merge the defaults // Merge the defaults
data = Ul.merge(data, { data.end = data.end || Moment();
end: Moment() data.start = data.start || Moment().subtract(1, "years");
, start: Moment().subtract(1, "years") data.format = data.format || DATE_FORMAT;
, format: DATE_FORMAT
});
var start = data.start var start = data.start
, end = data.end , end = data.end