From 9ebf6249e7b287c9f12e8c828be26f8ed01309ba Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 6 Apr 2020 10:39:48 +0200 Subject: [PATCH] tweaks and comments --- dist/reveal.min.js | 2 +- js/components/playback.js | 17 +++++++++-------- js/reveal.js | 6 +++--- webpack.config.js | 8 ++++---- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/dist/reveal.min.js b/dist/reveal.min.js index d82f5ea..dd66b29 100644 --- a/dist/reveal.min.js +++ b/dist/reveal.min.js @@ -1,5 +1,5 @@ /*! -* reveal.js 4.0.0-dev (Tue Mar 31 2020) +* reveal.js 4.0.0-dev (Mon Apr 06 2020) * https://revealjs.com * MIT licensed * diff --git a/js/components/playback.js b/js/components/playback.js index 7edf2d9..06fa7ba 100644 --- a/js/components/playback.js +++ b/js/components/playback.js @@ -1,15 +1,16 @@ /** - * UI component that lets the user control pause/resume - * and see the progress of auto-slide playback. - * - * @param {HTMLElement} container The component will append - * itself to this - * @param {function} progressCheck A method which will be - * called frequently to get the current progress on a range - * of 0-1 + * UI component that lets the use control auto-slide + * playback via play/pause. */ export default class Playback { + /** + * @param {HTMLElement} container The component will append + * itself to this + * @param {function} progressCheck A method which will be + * called frequently to get the current playback progress on + * a range of 0-1 + */ constructor( container, progressCheck ) { // Cosmetics diff --git a/js/reveal.js b/js/reveal.js index 5652655..3319b9c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2494,7 +2494,7 @@ export default function( revealElement, options ) { loadSlide: slideContent.load.bind( slideContent ), unloadSlide: slideContent.unload.bind( slideContent ), - // Adds or removes all internal event listeners (such as keyboard) + // Adds or removes all internal event listeners addEventListeners, removeEventListeners, dispatchEvent, @@ -2515,8 +2515,8 @@ export default function( revealElement, options ) { // Returns an Array of all slides getSlides, - // Returns an Array of objects representing the attributes on - // the slides + // Returns an Array of key:value maps of the attributes of each + // slide in the deck getSlidesAttributes, // Returns the total number of slides diff --git a/webpack.config.js b/webpack.config.js index f275511..0e4874c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,8 +17,8 @@ module.exports = { presets: [ [ '@babel/preset-env' ], ], - }, - }, - ], - }, + } + } + ] + } }; \ No newline at end of file