lib/collection/mutation-tracker.js
function (mutation) {
        // bail out for empty or unsupported mutations
        if (!(mutation && isPrimitiveMutation(mutation))) {
            return;
        }

        // if autoCompact is set, we need to compact while adding
        if (this.autoCompact) {
            this.addAndCompact(mutation);
            return;
        }

        // otherwise just push to the stream of mutations
        this.stream.push(mutation);
    }
function (mutation) {
        // bail out for empty or unsupported mutations
        if (!(mutation && isPrimitiveMutation(mutation))) {
            return;
        }

        // if autoCompact is set, we need to compact while adding
        if (this.autoCompact) {
            this.addAndCompact(mutation);
            return;
        }

        // otherwise just push to the stream of mutations
        this.stream.push(mutation);
    }
function ( mutation ) { // bail out for empty or unsupported mutations if ( ! ( mutation && isPrimitiveMutation ( mutation ) ) ) { return ; } // if autoCompact is set, we need to compact while adding if ( this . autoCompact ) { this . addAndCompact ( mutation ) ; return ; } // otherwise just push to the stream of mutations this . stream . push ( mutation ) ; }
Records a new mutation.

@private
@param {MutationTracker~mutation} mutation
Records a new mutation .