react-backbone.js
function popLoadingState(xhrEvent, stateName, modelOrCollection, context) {
        var currentLoads = getState(stateName, context);
        if (_.isArray(currentLoads)) {
            var i = currentLoads.indexOf(xhrEvent);
            while (i >= 0) {
                currentLoads.splice(i, 1);
                i = currentLoads.indexOf(xhrEvent);
            }
            if (!currentLoads.length) {
                var toSet = {};
                toSet[stateName] = undefined;
                setState(toSet, context);
            }
        }
    }
function popLoadingState(xhrEvent, stateName, modelOrCollection, context) {
        var currentLoads = getState(stateName, context);
        if (_.isArray(currentLoads)) {
            var i = currentLoads.indexOf(xhrEvent);
            while (i >= 0) {
                currentLoads.splice(i, 1);
                i = currentLoads.indexOf(xhrEvent);
            }
            if (!currentLoads.length) {
                var toSet = {};
                toSet[stateName] = undefined;
                setState(toSet, context);
            }
        }
    }
function popLoadingState ( xhrEvent , stateName , modelOrCollection , context ) { var currentLoads = getState ( stateName , context ) ; if ( _ . isArray ( currentLoads ) ) { var i = currentLoads . indexOf ( xhrEvent ) ; while ( i >= 0 ) { currentLoads . splice ( i , 1 ) ; i = currentLoads . indexOf ( xhrEvent ) ; } if ( ! currentLoads . length ) { var toSet = { } ; toSet [ stateName ] = undefined ; setState ( toSet , context ) ; } } }
remove the xhrEvent from the loading state
remove the xhrEvent from the loading state