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
data = Ul.merge(data, {
end: Moment()
, start: Moment().subtract(1, "years")
, format: DATE_FORMAT
});
data.end = data.end || Moment();
data.start = data.start || Moment().subtract(1, "years");
data.format = data.format || DATE_FORMAT;
var start = data.start
, end = data.end