entry.js 329 B

1234567891011121314151617
  1. 'use strict';
  2. module.exports = Entry;
  3. var PassThrough = require('readable-stream/passthrough');
  4. var inherits = require('util').inherits;
  5. inherits(Entry, PassThrough);
  6. function Entry () {
  7. PassThrough.call(this);
  8. this.props = {};
  9. }
  10. Entry.prototype.autodrain = function () {
  11. this.on('readable', this.read.bind(this));
  12. };