MCPcopy Index your code
hub / github.com/binaryjs/binaryjs / handleMessage

Function handleMessage

lib/util.js:47–56  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

45 }
46
47 function handleMessage(event) {
48 if (event.source == global && event.data == messageName) {
49 if (event.stopPropagation) {
50 event.stopPropagation();
51 }
52 if (timeouts.length) {
53 timeouts.shift()();
54 }
55 }
56 }
57 if (global.addEventListener) {
58 global.addEventListener('message', handleMessage, true);
59 } else if (global.attachEvent) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected