Data module.
Methods
static get(node, key) → {String}
Return data from given node.
Parameters:
Name | Type | Description |
---|---|---|
node |
Element | Node to get data from. |
key |
String | Data key. |
String
static getAll(node) → {Object}
Return data cache from given node.
Parameters:
Name | Type | Description |
---|---|---|
node |
Element | Node to get the cache from. |
Object
static remove(node, key)
Remove data from given node.
Parameters:
Name | Type | Description |
---|---|---|
node |
Element | Node to remove data from. |
key |
String | Data key. |
static set(node, key, value) → {Object}
Set data to node.
Parameters:
Name | Type | Description |
---|---|---|
node |
Element | Node to set the cache to. |
key |
String | Data key. |
value |
String | Value to set. |
Object