A Twitch.tv viewer reward and games system.
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.

25 lines
516 B

  1. 'use strict';
  2. var Node = require('./node')
  3. var Block = require('./block');
  4. /**
  5. * Initialize a `Filter` node with the given
  6. * filter `name` and `block`.
  7. *
  8. * @param {String} name
  9. * @param {Block|Node} block
  10. * @api public
  11. */
  12. var Filter = module.exports = function Filter(name, block, attrs) {
  13. this.name = name;
  14. this.block = block;
  15. this.attrs = attrs;
  16. };
  17. // Inherit from `Node`.
  18. Filter.prototype = Object.create(Node.prototype);
  19. Filter.prototype.constructor = Filter;
  20. Filter.prototype.type = 'Filter';