MCPcopy Create free account
hub / github.com/Yaffle/EventSource / addEvents

Function addEvents

tests/qunit.js:1122–1127  ·  view source on GitHub ↗

* @param {Array|NodeList} elems * @param {string} type * @param {Function} fn

( elems, type, fn )

Source from the content-addressed store, hash-verified

1120 * @param {Function} fn
1121 */
1122function addEvents( elems, type, fn ) {
1123 var i = elems.length;
1124 while ( i-- ) {
1125 addEvent( elems[i], type, fn );
1126 }
1127}
1128
1129function hasClass( elem, name ) {
1130 return (" " + elem.className + " ").indexOf(" " + name + " ") > -1;

Callers 1

qunit.jsFile · 0.85

Calls 1

addEventFunction · 0.85

Tested by

no test coverage detected