There was an error while loading. Please reload this page.
Source file: client/js/bubble.js
Class to represent a speech bubble.
id
[number]
element
[DOMElement]
timer
[Timer]
init(id, element, time)
Assigns this.id, this.element, and this.timer is created as a 5 second timer, starting at time.
this.id
this.element
this.timer
time
isOver(time)
Returns true if this.timer has run out, false otherwise.
true
destroy()
Removes this.element from the DOM.
reset(time)
Resets bubble timer to begin 5 second destroy-countdown from time.