From 3b04b43972a0c720b880752a642fba2876698936 Mon Sep 17 00:00:00 2001 From: otacke Date: Mon, 3 Oct 2016 17:07:41 +0200 Subject: [PATCH] adhere to JSDoc style --- memory-game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/memory-game.js b/memory-game.js index 9e1fcf8..8ab7648 100644 --- a/memory-game.js +++ b/memory-game.js @@ -18,11 +18,11 @@ H5P.MemoryGame = (function (EventDispatcher, $) { var removed = 0; /** - * Update the time on the screen + * Update the time on the screen. * * @private - * @param {H5P.jQuery} $container - element to be updated - * @param {H5P.Timer} timer - the timer containing the time + * @param {H5P.jQuery} $container - element to be updated. + * @param {H5P.Timer} timer - the timer containing the time. */ var updateDisplayTime = function($container, timer) { var time = timer.getTime(); @@ -160,7 +160,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) { '').appendTo($container); timer = new H5P.Timer(100); - timer.notifyEvery(H5P.Timer.TYPE_CLOCK, 0, 1000, updateDisplayTime, [$status.find('.h5p-time-spent'), timer]); + timer.notifyEvery(H5P.Timer.TYPE_CLOCK, 0, 500, updateDisplayTime, [$status.find('.h5p-time-spent'), timer]); counter = new MemoryGame.Counter($status.find('.h5p-card-turns')); popup = new MemoryGame.Popup($container);