lib/collection.js
function (name, items) {
    var List = this.get('List');
    var list = this.lists[name];
    if (typeof list === 'undefined') {
      var opts = lazy.clone(this.options);
      opts.items = items || this.items;
      opts.collection = this;
      this.lists[name] = list = new List(opts);
    }
    return list;
  }
function (name, items) {
    var List = this.get('List');
    var list = this.lists[name];
    if (typeof list === 'undefined') {
      var opts = lazy.clone(this.options);
      opts.items = items || this.items;
      opts.collection = this;
      this.lists[name] = list = new List(opts);
    }
    return list;
  }
function ( name , items ) { var List = this . get ( 'List' ) ; var list = this . lists [ name ] ; if ( typeof list === 'undefined' ) { var opts = lazy . clone ( this . options ) ; opts . items = items || this . items ; opts . collection = this ; this . lists [ name ] = list = new List ( opts ) ; } return list ; }
Get or create a new list.
Get or create a new list .