@@ -90,7 +90,7 @@ const MM = (function () {
9090 /**
9191 * Send a notification to all modules.
9292 * @param {string } notification The identifier of the notification.
93- * @param {* } payload The payload of the notification.
93+ * @param {object } payload The payload of the notification.
9494 * @param {Module } sender The module that sent the notification.
9595 * @param {Module } [sendTo] The (optional) module to send the notification to.
9696 */
@@ -262,7 +262,7 @@ const MM = (function () {
262262 * Hide the module.
263263 * @param {Module } module The module to hide.
264264 * @param {number } speed The speed of the hide animation.
265- * @param {Function } callback Called when the animation is done.
265+ * @param {Promise } callback Called when the animation is done.
266266 * @param {object } [options] Optional settings for the hide method.
267267 */
268268 const hideModule = function ( module , speed , callback , options = { } ) {
@@ -347,7 +347,7 @@ const MM = (function () {
347347 * Show the module.
348348 * @param {Module } module The module to show.
349349 * @param {number } speed The speed of the show animation.
350- * @param {Function } callback Called when the animation is done.
350+ * @param {Promise } callback Called when the animation is done.
351351 * @param {object } [options] Optional settings for the show method.
352352 */
353353 const showModule = function ( module , speed , callback , options = { } ) {
@@ -552,7 +552,7 @@ const MM = (function () {
552552
553553 /**
554554 * Walks thru a collection of modules and executes the callback with the module as an argument.
555- * @param {Function } callback The function to execute with the module as an argument.
555+ * @param {module } callback The function to execute with the module as an argument.
556556 */
557557 const enumerate = function ( callback ) {
558558 modules . map ( function ( module ) {
@@ -629,7 +629,7 @@ const MM = (function () {
629629 /**
630630 * Send a notification to all modules.
631631 * @param {string } notification The identifier of the notification.
632- * @param {* } payload The payload of the notification.
632+ * @param {object } payload The payload of the notification.
633633 * @param {Module } sender The module that sent the notification.
634634 */
635635 sendNotification ( notification , payload , sender ) {
@@ -688,7 +688,7 @@ const MM = (function () {
688688 * Hide the module.
689689 * @param {Module } module The module to hide.
690690 * @param {number } speed The speed of the hide animation.
691- * @param {Function } callback Called when the animation is done.
691+ * @param {Promise } callback Called when the animation is done.
692692 * @param {object } [options] Optional settings for the hide method.
693693 */
694694 hideModule ( module , speed , callback , options ) {
@@ -700,7 +700,7 @@ const MM = (function () {
700700 * Show the module.
701701 * @param {Module } module The module to show.
702702 * @param {number } speed The speed of the show animation.
703- * @param {Function } callback Called when the animation is done.
703+ * @param {Promise } callback Called when the animation is done.
704704 * @param {object } [options] Optional settings for the show method.
705705 */
706706 showModule ( module , speed , callback , options ) {
0 commit comments