From 9d34f8f054f7bba726a9b3a4bb9d62980c9d7e28 Mon Sep 17 00:00:00 2001 From: Andrei Filip Date: Thu, 12 Oct 2023 20:10:52 +0000 Subject: [PATCH 1/2] fix 2 minor types --- src/js/component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/component.js b/src/js/component.js index 08c53ff8d2..a567ecd402 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -160,7 +160,7 @@ class Component { * @param {string|string[]} type * An event name or an array of event names. * - * @param {Function} fn + * @param {Function} [fn] * The function to remove. */ off(type, fn) {} @@ -1843,7 +1843,7 @@ class Component { * @param {string} name * The Name of the component to get. * - * @return {Component} + * @return {typeof Component} * The `Component` that got registered under the given name. */ static getComponent(name) { From ca717059ae13ab3741661ed954ad61a3580e9a2c Mon Sep 17 00:00:00 2001 From: Andrei Filip Date: Fri, 20 Oct 2023 15:35:38 +0300 Subject: [PATCH 2/2] Update component.js Co-authored-by: mister-ben --- src/js/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/component.js b/src/js/component.js index a567ecd402..3d7d2d8f20 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -161,7 +161,7 @@ class Component { * An event name or an array of event names. * * @param {Function} [fn] - * The function to remove. + * The function to remove. If not specified, all listeners managed by Video.js will be removed. */ off(type, fn) {}