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.mjs 358B

123456789101112131415161718
  1. export default resolveAll
  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. }