Members
(static, constant) MAX_LONG
Maximum value of a long
- Source:
Methods
(static) addCss(div, css)
Add a css class to a the div given as argument.
Parameters:
Name | Type | Description |
---|---|---|
div |
the div to add the class to | |
css |
the css class to add |
- Source:
(static) assertArray()
Assert that a letiable or object attribute is an object
- Source:
(static) assertBoolean()
Assert that a letiable or object attribute is a string
- Source:
(static) assertDefined()
Assert that a letiable or object attribute is defined
- Source:
(static) assertFunction()
Assert that a letiable or object attribute is a function
- Source:
(static) assertHasValue()
Assert that a letiable or object attribute is defined and non-null
- Source:
(static) assertNumber()
Assert that a letiable or object attribute is a number
- Source:
(static) assertObject()
Assert that a letiable or object attribute is an object
- Source:
(static) assertPositive()
Assert that a letiable or object attribute is a number
- Source:
(static) assertString()
Assert that a letiable or object attribute is a string
- Source:
(static) assertType()
Assert that a letiable or object attribute is defined and non-null
- Source:
(static) debounce()
Returns a function that, as long as it continues to be invoked,
will not be executed. The function will only be executed when
it will stop being called for more than N milliseconds.
If the `immediate` parameter is true, then the function
will be executed at the first call instead of the last.
Parameters :
- func: the function to `debouncer`.
- wait: the number of milliseconds (N) to wait before
call func()
- immediate (optional): Call func() at the first invocation
instead of the last one (Default false)
- context (optional): the context in which to call func()
(this by default)
- Source:
(static) GetResultObject(resultStructure) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
resultStructure |
- Source:
Returns:
- Type
- Object
(static) hasType()
Global helper method to test if a letiable or object attribute is of a particular type
- Source:
(static) hasValue()
Global helper method to test if a letiable or object attribute has a value,
that is it is defined and non null
- Source:
(static) hex2rgb()
Global helper method to transform hex color into RGBA
- Source:
(static) isArray()
Global helper method to test if a letiable or object attribute is an array
- Source:
(static) isArrayIntersect(a, b) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
a |
||
b |
- Source:
Returns:
- Type
- boolean
(static) isBlink() → {*|boolean}
- Source:
Returns:
- Type
- * | boolean
(static) isChrome() → {boolean}
- Source:
Returns:
- Type
- boolean
(static) isDefined()
Global helper method to test if a letiable or object attribute is defined
- Source:
(static) isElement(o) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
o |
- Source:
Returns:
- Type
- boolean
(static) isFirefox() → {boolean}
- Source:
Returns:
- Type
- boolean
(static) isFunction()
Global helper method to test if a letiable or object attribute is a function
- Source:
(static) isObject()
Global helper method to test if a letiable or object attribute is an object
- Source:
(static) isOpera() → {boolean}
- Source:
Returns:
- Type
- boolean
(static) isSafari() → {boolean}
- Source:
Returns:
- Type
- boolean
(static) isWebWorker() → {*}
- Source:
Returns:
- Type
- *
(static) ParseBytes(buffer, offset, type) → {*}
Parameters:
Name | Type | Description |
---|---|---|
buffer |
||
offset |
||
type |
- Source:
Returns:
- Type
- *
(static) randomUUID() → {String}
- Source:
Returns:
- Type
- String
(static) ReadData(struct, data, offsetBytes) → {*}
Parameters:
Name | Type | Description |
---|---|---|
struct |
||
data |
||
offsetBytes |
- Source:
Returns:
- Type
- *
(static) removeCss(div, css)
Remove a css class from a the div given as argument.
Parameters:
Name | Type | Description |
---|---|---|
div |
the div to remove the class from | |
css |
the css class to remove |
- Source:
(static) removeLastCharIfExist(value) → {string}
Removes the last character of a {string} object.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The input {string} |
- Source:
Returns:
The value without the last character
- Type
- string
(static) roundHalf(num) → {number}
Round off number to nearest 0.5
Parameters:
Name | Type | Description |
---|---|---|
num |
Number | The number to round off |
- Source:
Returns:
The rounded number
- Type
- number
(static) stampUUID() → {String}
This function stamps/embeds a UUID into an object and returns the UUID generated for it
- Source:
Returns:
- Type
- String
(static) takeScreenShot(div)
Parameters:
Name | Type | Description |
---|---|---|
div |
- Source: