lib/collection.js
function Collection(options) {
  Base.call(this, options);
  this.define('lists', {});
  this.define('_items', {});
  this.define('Item', this.options.Item || require('./item'));
  this.define('List', this.options.List || require('./list'));
  mixins(this);

  /**
   * Get an object representing the current items on the instance.
   *
   * ```js
   * var items = this.items;
   * ```
   *
   * @return {Object} Object of items
   */

  Object.defineProperty(this, 'items', {
    enumerable: false,
    configurable: true,
    get: function () {
      return this._items;
    },
    set: function (items) {
      lazy.forIn(items, function (item, key) {
        delete this._items[key];
        delete this[key];
        this.set(key, item);
      }, this);
    }
  });
}
function Collection(options) {
  Base.call(this, options);
  this.define('lists', {});
  this.define('_items', {});
  this.define('Item', this.options.Item || require('./item'));
  this.define('List', this.options.List || require('./list'));
  mixins(this);

  /**
   * Get an object representing the current items on the instance.
   *
   * ```js
   * var items = this.items;
   * ```
   *
   * @return {Object} Object of items
   */

  Object.defineProperty(this, 'items', {
    enumerable: false,
    configurable: true,
    get: function () {
      return this._items;
    },
    set: function (items) {
      lazy.forIn(items, function (item, key) {
        delete this._items[key];
        delete this[key];
        this.set(key, item);
      }, this);
    }
  });
}
function Collection ( options ) { Base . call ( this , options ) ; this . define ( 'lists' , { } ) ; this . define ( '_items' , { } ) ; this . define ( 'Item' , this . options . Item || require ( './item' ) ) ; this . define ( 'List' , this . options . List || require ( './list' ) ) ; mixins ( this ) ; /**
   * Get an object representing the current items on the instance.
   *
   * ```js
   * var items = this.items;
   * ```
   *
   * @return {Object} Object of items
   */ Object . defineProperty ( this , 'items' , { enumerable : false , configurable : true , get : function ( ) { return this . _items ; } , set : function ( items ) { lazy . forIn ( items , function ( item , key ) { delete this . _items [ key ] ; delete this [ key ] ; this . set ( key , item ) ; } , this ) ; } } ) ; }
Create an instance of `Collection` with the specified `options`.
The `Collection` constructor inherits from Base.

```js
var collection = new Collection();
```
@param {Object} `options`
@return {undefined}
@api public
Create an instance of Collection with the specified options . The Collection constructor inherits from Base .