nivizNode Class
nivizNode provides a few convenience functions regarding the Node object passed as parameter, i. e. the height/width getters and setters as well as the offset function - an equivalent to jQuery's offset() function.
Constructor
Item Index
Methods
assert
(
Boolean
static
-
condition
-
[message]
Assert that condition
holds.
Returns:
Boolean:
The conditions value.
Throws:
Error:
If the condition is false.
extend
(
Object
static
-
obj
-
source
Extends an object with 1..n other objects.
Parameters:
Returns:
Object:
The extended object
inherits
(
Function
static
-
C
-
P
Let constructor C
inherit from P
.
Returns:
Function:
The extended child constructor.
isFunction
(
Boolean
static
-
v
Checks if variable is a function
Returns:
Boolean:
true if parameter is a function
pick
(
Object
static
-
obj
-
keys
Picks the passed-in properties from an object.
Returns:
Object:
A copy of obj
containing only the
given keys
.