lib/patternEmitter.js
function PatternEmitter() {
  EventEmitter.call(this);

  this.event = '';
  this._regexesCount = 0;

  this._events = this._events || {};
  this._patternEvents = this._patternEvents || {};
  this._regexes = this._regexes || {};
}
function PatternEmitter() {
  EventEmitter.call(this);

  this.event = '';
  this._regexesCount = 0;

  this._events = this._events || {};
  this._patternEvents = this._patternEvents || {};
  this._regexes = this._regexes || {};
}
function PatternEmitter ( ) { EventEmitter . call ( this ) ; this . event = '' ; this . _regexesCount = 0 ; this . _events = this . _events || { } ; this . _patternEvents = this . _patternEvents || { } ; this . _regexes = this . _regexes || { } ; }
Creates a new PatternEmitter, which extends EventEmitter. In addition to
EventEmitter's prototype, it allows listeners to register to events matching
a RegExp.

@constructor
@extends EventEmitter

@property {*} event The type of the last emitted event
Creates a new PatternEmitter which extends EventEmitter . In addition to EventEmitter s prototype it allows listeners to register to events matching a RegExp .