You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
358 B
18 lines
358 B
export default resolveAll |
|
|
|
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 |
|
}
|
|
|