MCPcopy Create free account
hub / github.com/ElemeFE/element-react / registerNode

Method registerNode

src/tree/model/tree-store.js:129–135  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

127 }
128
129 registerNode(node) {
130 const key = this.key;
131 if (!key || !node || !node.data) return;
132
133 const nodeKey = node.key;
134 if (nodeKey !== undefined) this.nodesMap[node.key] = node;
135 }
136
137 deregisterNode(node) {
138 const key = this.key;

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected