ampersand-collection.js
function () {
        var list = slice.call(this.indexes || []);
        var i = 0;
        list.push(this.mainIndex);
        list.push('cid');
        var l = list.length;
        this.models = [];
        this._indexes = {};
        for (; i < l; i++) {
            this._indexes[list[i]] = {};
        }
    }
function () {
        var list = slice.call(this.indexes || []);
        var i = 0;
        list.push(this.mainIndex);
        list.push('cid');
        var l = list.length;
        this.models = [];
        this._indexes = {};
        for (; i < l; i++) {
            this._indexes[list[i]] = {};
        }
    }
function ( ) { var list = slice . call ( this . indexes || [ ] ) ; var i = 0 ; list . push ( this . mainIndex ) ; list . push ( 'cid' ) ; var l = list . length ; this . models = [ ] ; this . _indexes = { } ; for ( ; i < l ; i ++ ) { this . _indexes [ list [ i ] ] = { } ; } }
Private method to reset all internal state. Called when the collection is first initialized or reset.
Private method to reset all internal state . Called when the collection is first initialized or reset .