lib/collection/mutation-tracker.js
function (target) {
        if (!(target && target.applyMutation)) {
            return;
        }

        var applyIndividualMutation = function applyIndividualMutation (mutation) {
            applyMutation(target, mutation);
        };

        // mutations move from `stream` to `compacted`, so we apply the compacted mutations first
        // to ensure FIFO of mutations

        // apply the compacted mutations first
        _.forEach(this.compacted, applyIndividualMutation);

        // apply the mutations in the stream
        _.forEach(this.stream, applyIndividualMutation);
    }
function (target) {
        if (!(target && target.applyMutation)) {
            return;
        }

        var applyIndividualMutation = function applyIndividualMutation (mutation) {
            applyMutation(target, mutation);
        };

        // mutations move from `stream` to `compacted`, so we apply the compacted mutations first
        // to ensure FIFO of mutations

        // apply the compacted mutations first
        _.forEach(this.compacted, applyIndividualMutation);

        // apply the mutations in the stream
        _.forEach(this.stream, applyIndividualMutation);
    }
function ( target ) { if ( ! ( target && target . applyMutation ) ) { return ; } var applyIndividualMutation = function applyIndividualMutation ( mutation ) { applyMutation ( target , mutation ) ; } ; // mutations move from `stream` to `compacted`, so we apply the compacted mutations first // to ensure FIFO of mutations // apply the compacted mutations first _ . forEach ( this . compacted , applyIndividualMutation ) ; // apply the mutations in the stream _ . forEach ( this . stream , applyIndividualMutation ) ; }
Applies all the recorded mutations on a target object.

@param {*} target Target to apply mutations. Must implement `applyMutation`.
Applies all the recorded mutations on a target object .