Module: managers/timer-manager

Handles interaction timer

Source:

Requires

  • module:jHammer

Methods


init(jconfig)

Initializes class

Parameters:
Name Type Description
jconfig Object

Project JSON config

Source:
Fires:
  • event:assignListeners()

assignListeners()

Assigns listeners to events used in this class.

Source:
Listens to Events:
  • event:mouseup
  • event:mousedown
  • event:keydown
  • event:EVENT_LANGUAGE_CONFIG_LOADED
  • event:EVENT_VIDEO_END
  • event:EVENT_VIDEO_START
  • event:EVENT_VIDEO_PAUSE
  • event:EVENT_KILL_INTERACTION_TIMER
  • event:EVENT_SET_INTERACTION_BLOCK_TIMER

killTimer()

Kills the interactive timer

Source:

setInteractionDelayTimer()

Sets a delay between clicks to prevent rapid click issues

Source:

resetTimeout()

Resets the interactive timer

Source: