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.

comment.js 505B

1234567891011121314151617181920212223
  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize a `Comment` with the given `val`, optionally `buffer`,
  5. * otherwise the comment may render in the output.
  6. *
  7. * @param {String} val
  8. * @param {Boolean} buffer
  9. * @api public
  10. */
  11. var Comment = module.exports = function Comment(val, buffer) {
  12. this.val = val;
  13. this.buffer = buffer;
  14. };
  15. // Inherit from `Node`.
  16. Comment.prototype = Object.create(Node.prototype);
  17. Comment.prototype.constructor = Comment;
  18. Comment.prototype.type = 'Comment';