aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-23 13:10:20 +1100
committerGitHub <noreply@github.com>2019-02-23 13:10:20 +1100
commit4d3b6b882e5a66a06467d0087a5a2bdf8a03d1af (patch)
tree13dd2501e2065516ad7b7a4ffea0f12908514636 /src/js/plugins/ads.js
parent80990c98c81fcbd494bc4a14522167d9bd88341a (diff)
parent83eda174af655534223d0855a1748b08eb1db6e1 (diff)
downloadplyr-4d3b6b882e5a66a06467d0087a5a2bdf8a03d1af.tar.lz
plyr-4d3b6b882e5a66a06467d0087a5a2bdf8a03d1af.tar.xz
plyr-4d3b6b882e5a66a06467d0087a5a2bdf8a03d1af.zip
Merge pull request #1356 from sampotts/develop
v3.5.1
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)) {