MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / attach

Function attach

examples/js/processing.js:10630–10637  ·  view source on GitHub ↗
(elem, type, fn)

Source from the content-addressed store, hash-verified

10628 //////////////////////////////////////////////////////////////////////////
10629
10630 function attach(elem, type, fn) {
10631 if (elem.addEventListener) {
10632 elem.addEventListener(type, fn, false);
10633 } else {
10634 elem.attachEvent("on" + type, fn);
10635 }
10636 eventHandlers.push([elem, type, fn]);
10637 }
10638
10639 attach(curElement, "mousemove", function(e) {
10640 var element = curElement, offsetX = 0, offsetY = 0;

Callers 1

processing.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected