This namespaces contains a few misc helper functions and constants.
- Source:
- utils.js, line 15
Members
-
<static> eps :Number
-
Default value for acceptance ranges.
- Source:
- utils.js, line 20
-
<static> logs
-
Store all log messages.
- Source:
- utils.js, line 25
Methods
-
<static> dumpLog
-
Dump the whole log into the console (if available).
- Source:
- utils.js, line 134
-
<static> expand
-
Wrapper for Assessor.Utils#funstructor with exception "handling" (in this case, handling means ignoring).
Parameters:
Name Type Description classname
Function parameters
Array - Source:
- utils.js, line 63
Returns:
- Type
- Object
-
<static> expandJSON
-
Restore an array of assessment verifiers and values from their JSON representations.
Parameters:
Name Type Description a
Array - Source:
- utils.js, line 80
Returns:
- Type
- Array
-
<static> expandNumber
-
Creates an Assessor.Value.Number if the given value is not a verifier object.
Parameters:
Name Type Description v
Number,Assessor.Value.Number - Source:
- utils.js, line 114
Returns:
- Type
- Assessor.Value.Number
-
<static> funstructor
-
Initialize a new instance of a class and use params as parameters.
Parameters:
Name Type Description Constructor
Function params
Array - Source:
- utils.js, line 34
- See:
-
- http://stackoverflow.com/questions/3362471/how-can-i-call-a-javascript-constructor-using-call-or-apply
Returns:
- Type
- Object
-
<static> log
-
Store all the parameters in one entry of the Assessor.Utils#logs array.
- Source:
- utils.js, line 127