1234567891011121314151617181920 |
- 'use strict'
-
- function resolveAll(constructs, events, context) {
- var called = []
- var index = -1
- var resolve
-
- while (++index < constructs.length) {
- resolve = constructs[index].resolveAll
-
- if (resolve && called.indexOf(resolve) < 0) {
- events = resolve(events, context)
- called.push(resolve)
- }
- }
-
- return events
- }
-
- module.exports = resolveAll
|