Capítulo 748 de 859
This utility class is used in NodeBuilder as an internal cache data structure for node data.
Constructor
| Signature |
|---|
new NodeCache( parent : NodeCache ) |
Properties
| Property | Description |
|---|---|
.id : number (readonly) | The id of the cache. |
.nodesData : WeakMap.<Node, Object> | A weak map for managing node data. |
.parent : NodeCache | Reference to a parent node cache. |
Methods
| Method | Description |
|---|---|
.getData( node : Node ) : Object | Returns the data for the given node. |
.setData( node : Node, data : Object ) | Sets the data for a given node. |