aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-23 13:07:35 +1100
committerSam Potts <sam@potts.es>2019-02-23 13:07:35 +1100
commit438ebe501320ac731aadcd94e7239a8778407b4a (patch)
tree288f4e4ecaf17e57a83fd882114e527c4775460c /src/js/plugins/ads.js
parent4335a2a0d1cbd71c7794ab2e8e13132c4b49e6e9 (diff)
downloadplyr-438ebe501320ac731aadcd94e7239a8778407b4a.tar.lz
plyr-438ebe501320ac731aadcd94e7239a8778407b4a.tar.xz
plyr-438ebe501320ac731aadcd94e7239a8778407b4a.zip
Jsdoc updates
Diffstat (limited to 'src/js/plugins/ads.js')
-rw-r--r--src/js/plugins/ads.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js
index 6efd3295..c9256b0e 100644
--- a/src/js/plugins/ads.js
+++ b/src/js/plugins/ads.js
@@ -17,7 +17,7 @@ import { buildUrlParams } from '../utils/urls';
class Ads {
/**
* Ads constructor.
- * @param {object} player
+ * @param {Object} player
* @return {Ads}
*/
constructor(player) {
@@ -198,7 +198,7 @@ class Ads {
/**
* Update the ad countdown
- * @param {boolean} start
+ * @param {Boolean} start
*/
pollCountdown(start = false) {
if (!start) {
@@ -559,7 +559,7 @@ class Ads {
/**
* Handles callbacks after an ad event was invoked
- * @param {string} event - Event type
+ * @param {String} event - Event type
*/
trigger(event, ...args) {
const handlers = this.events[event];
@@ -575,8 +575,8 @@ class Ads {
/**
* Add event listeners
- * @param {string} event - Event type
- * @param {function} callback - Callback for when event occurs
+ * @param {String} event - Event type
+ * @param {Function} callback - Callback for when event occurs
* @return {Ads}
*/
on(event, callback) {
@@ -594,8 +594,8 @@ class Ads {
* The advertisement has 12 seconds to get its things together. We stop this timer when the
* advertisement is playing, or when a user action is required to start, then we clear the
* timer on ad ready
- * @param {number} time
- * @param {string} from
+ * @param {Number} time
+ * @param {String} from
*/
startSafetyTimer(time, from) {
this.player.debug.log(`Safety timer invoked from: ${from}`);
@@ -608,7 +608,7 @@ class Ads {
/**
* Clear our safety timer(s)
- * @param {string} from
+ * @param {String} from
*/
clearSafetyTimer(from) {
if (!is.nullOrUndefined(this.safetyTimer)) {