mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
var forEachEls = require("../foreach-els")
|
|
|
|
module.exports = function(els, events, listener, useCapture) {
|
|
events = (typeof events === "string" ? events.split(" ") : events)
|
|
|
|
events.forEach(function(e) {
|
|
forEachEls(els, function(el) {
|
|
el.removeEventListener(e, listener, useCapture)
|
|
})
|
|
})
|
|
}
|