Class Index | File Index

Classes


Namespace $.ui.scoreboard

Scoreboard widget
Defined in: ui.scoreboard.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
dec(val)
Decrements the score by 1 or by the supplied numeric argument
 
decTotal(val)
Decrements the total by 1 or by the supplied numeric argument
 
Removes the scoreboard widget and all related data from the DOM
 
Gets the current score
 
Gets the current total
 
inc(val)
Increments the score by 1 or by the supplied numeric argument
 
incTotal(val)
Increments the total by 1 or by the supplied numeric argument
 
Restarts the scoreboard and triggers the "scoreboardRestart" event
 
setScore(newScore)
Sets the current score
 
setTotal(newTotal)
Sets the current total
Namespace Detail
$.ui.scoreboard
Method Detail
dec(val)
Decrements the score by 1 or by the supplied numeric argument
Parameters:
{Number} val Optional
decrement value

decTotal(val)
Decrements the total by 1 or by the supplied numeric argument
Parameters:
{Number} val Optional
decrement value

destroy()
Removes the scoreboard widget and all related data from the DOM

{Number} getScore()
Gets the current score
Returns:
{Number} current score

{Number} getTotal()
Gets the current total
Returns:
{Number} current total

inc(val)
Increments the score by 1 or by the supplied numeric argument
Parameters:
{Number} val Optional
increment value

incTotal(val)
Increments the total by 1 or by the supplied numeric argument
Parameters:
{Number} val Optional
increment value

restart()
Restarts the scoreboard and triggers the "scoreboardRestart" event

setScore(newScore)
Sets the current score
Parameters:
{Number} newScore
new score

setTotal(newTotal)
Sets the current total
Parameters:
{Number} newTotal
new score

Documentation generated by JsDoc Toolkit 2.3.2 on Wed Jan 20 2010 17:12:11 GMT+0545 (NPT)