Add forEachSelectors method

This commit is contained in:
Maxime Thirouin
2014-05-23 06:54:20 +02:00
parent b6702a5ea0
commit 76026cf8d9
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
var forEachEls = require("./foreach-els")
module.exports = function(selectors, cb, context, DOMcontext) {
DOMcontext = DOMcontext || document
selectors.forEach(function(selector) {
forEachEls(DOMcontext.querySelectorAll(selector), cb, context)
})
}