MCPcopy Create free account
hub / github.com/adonovan/spaghetti / onLoad

Function onLoad

code.js:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4var broken = null // array of 2-arrays of int, the node ids of broken edges.
5
6function onLoad() {
7 // Grab data from server: package graph, "directory" tree, broken edges.
8 jQuery.ajax({url: "/data", success: onData})
9}
10
11// onData is called shortly after page load with the result of the /data request.
12function onData(data) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected