MCPcopy Index your code
hub / github.com/mailru/FileAPI / addEvent

Function addEvent

tests/qunit/qunit.js:1500–1508  ·  view source on GitHub ↗

* @param {HTMLElement} elem * @param {string} type * @param {Function} fn

( elem, type, fn )

Source from the content-addressed store, hash-verified

1498 * @param {Function} fn
1499 */
1500function addEvent( elem, type, fn ) {
1501 // Standards-based browsers
1502 if ( elem.addEventListener ) {
1503 elem.addEventListener( type, fn, false );
1504 // IE
1505 } else {
1506 elem.attachEvent( "on" + type, fn );
1507 }
1508}
1509
1510/**
1511 * @param {Array|NodeList} elems

Callers 2

qunit.jsFile · 0.85
addEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected