Ein Projekt das es ermöglicht Beerpong über das Internet von zwei unabhängigen positionen aus zu spielen. Entstehung im Rahmen einer Praktikumsaufgabe im Fach Interaktion.
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.

each.js 503B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize an `Each` node, representing iteration
  5. *
  6. * @param {String} obj
  7. * @param {String} val
  8. * @param {String} key
  9. * @param {Block} block
  10. * @api public
  11. */
  12. var Each = module.exports = function Each(obj, val, key, block) {
  13. this.obj = obj;
  14. this.val = val;
  15. this.key = key;
  16. this.block = block;
  17. };
  18. // Inherit from `Node`.
  19. Each.prototype = Object.create(Node.prototype);
  20. Each.prototype.constructor = Each;
  21. Each.prototype.type = 'Each';