* Cleanup the store.
()
| 195 | * Cleanup the store. |
| 196 | */ |
| 197 | function destroy() { |
| 198 | unsubscribe(); |
| 199 | graph.off('batch:stop', onBatchStop); |
| 200 | graph.clear(); |
| 201 | data.destroy(); |
| 202 | measuredNodes.clear(); |
| 203 | } |
| 204 | // Force update the graph to ensure it's in sync with the store. |
| 205 | forceUpdate(); |
| 206 |