MCPcopy Create free account
hub / github.com/WebReflection/neverland / changes

Function changes

index.js:197–203  ·  view source on GitHub ↗
(records)

Source from the content-addressed store, hash-verified

195 }
196
197 function changes(records) {
198 for (var record, length = records.length, i = 0; i < length; i++) {
199 record = records[i];
200 dispatchAll(record.removedNodes, 'disconnected', disconnected, connected);
201 dispatchAll(record.addedNodes, 'connected', connected, disconnected);
202 }
203 }
204
205 function dispatchAll(nodes, type, wsin, wsout) {
206 for (var node, event = new Event(type), length = nodes.length, i = 0; i < length; (node = nodes[i++]).nodeType === 1 && dispatchTarget(node, event, type, wsin, wsout)) {

Callers 1

rescheduleFunction · 0.70

Calls 1

dispatchAllFunction · 0.70

Tested by

no test coverage detected