MDL-66158 calendar: Events should be space separated not an array
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 16 Jul 2019 01:45:32 +0000 (09:45 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 16 Jul 2019 01:46:02 +0000 (09:46 +0800)
calendar/amd/build/calendar_threemonth.min.js
calendar/amd/src/calendar_threemonth.js

index 905e24f..857d89e 100644 (file)
Binary files a/calendar/amd/build/calendar_threemonth.min.js and b/calendar/amd/build/calendar_threemonth.min.js differ
index 66cfb00..68d16be 100644 (file)
@@ -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) {