Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

resolve-all.js 374B

1234567891011121314151617181920
  1. 'use strict'
  2. function resolveAll(constructs, events, context) {
  3. var called = []
  4. var index = -1
  5. var resolve
  6. while (++index < constructs.length) {
  7. resolve = constructs[index].resolveAll
  8. if (resolve && called.indexOf(resolve) < 0) {
  9. events = resolve(events, context)
  10. called.push(resolve)
  11. }
  12. }
  13. return events
  14. }
  15. module.exports = resolveAll