Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit eba562c

Browse files
committed
Fix getLocaleConfig
tValues function must convert an object to an array but currently a similar object is returned.
1 parent 77055b3 commit eba562c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ angular.module('ui.calendar', [])
209209
// convert {0: "Jan", 1: "Feb", ...} to ["Jan", "Feb", ...]
210210
return (Object.keys(data) || []).reduce(
211211
function (rslt, el) {
212-
rslt[el] = data[el];
212+
rslt.push(data[el]);
213213
return rslt;
214214
},
215-
{}
215+
[]
216216
);
217217
};
218218

0 commit comments

Comments
 (0)