Skip to content

Commit

Permalink
MDL-66158 calendar: Events should be space separated not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jul 16, 2019
1 parent f7e1084 commit 444f85a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calendar/amd/build/calendar_threemonth.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion calendar/amd/src/calendar_threemonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function(
*/
var registerCalendarEventListeners = function(root) {
var body = $('body');
body.on([CalendarEvents.monthChanged, CalendarEvents.dayChanged], function(e, year, month, courseId, categoryId) {
body.on([CalendarEvents.monthChanged, CalendarEvents.dayChanged].join(' '), function(e, year, month, courseId, categoryId) {
// We have to use a queue here because the calling code is decoupled from these listeners.
// It's possible for the event to be called multiple times before one call is fully resolved.
root.queue(function(next) {
Expand Down

0 comments on commit 444f85a

Please sign in to comment.