MDL-59940 calendar: Fix eslint errors
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 25 Sep 2017 03:51:08 +0000 (11:51 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 25 Sep 2017 03:52:39 +0000 (11:52 +0800)
calendar/amd/build/calendar.min.js
calendar/amd/src/calendar.js

index c9f858f..a1c8e36 100644 (file)
Binary files a/calendar/amd/build/calendar.min.js and b/calendar/amd/build/calendar.min.js differ
index 6e988e8..0c436cc 100644 (file)
@@ -255,11 +255,14 @@ define([
             });
             modal.setCourseId(courseId);
             return;
-        });
+        })
+        .fail(Notification.exception);
     };
 
     /**
      * Register event listeners for the module.
+     *
+     * @param {object} root The calendar root element
      */
     var registerEventListeners = function(root) {
         // Bind click events to event links.
@@ -323,7 +326,8 @@ define([
                     modal.setStartTime(startTime);
                     modal.show();
                     return;
-                });
+                })
+                .fail(Notification.exception);
 
                 e.preventDefault();
             }