lib/definitions/eventExtender.js
function (collection) {
    if (!collection || !_.isObject(collection)) {
      var err = new Error('Please pass a valid collection!');
      debug(err);
      throw err;
    }

    this.collection = collection;
  }
function (collection) {
    if (!collection || !_.isObject(collection)) {
      var err = new Error('Please pass a valid collection!');
      debug(err);
      throw err;
    }

    this.collection = collection;
  }
function ( collection ) { if ( ! collection || ! _ . isObject ( collection ) ) { var err = new Error ( 'Please pass a valid collection!' ) ; debug ( err ) ; throw err ; } this . collection = collection ; }
Injects the needed collection.
@param {Object} collection The collection object to inject.
Injects the needed collection .