build/tincan.js
function (stmtId, callback) {
            this.log("getVoidedStatement");

            var lrs;

            if (this.recordStores.length > 0) {
                //
                // for statements (for now) we only need to read from the first LRS
                // in the future it may make sense to get all from all LRSes and
                // compare to remove duplicates or allow inspection of them for differences?
                //
                // TODO: make this the first non-allowFail LRS but for now it should
                // be good enough to make it the first since we know the LMS provided
                // LRS is the first
                //
                lrs = this.recordStores[0];

                return lrs.retrieveVoidedStatement(stmtId, { callback: callback });
            }

            this.log("[warning] getVoidedStatement: No LRSs added yet (statement not retrieved)");
        }
function (stmtId, callback) {
            this.log("getVoidedStatement");

            var lrs;

            if (this.recordStores.length > 0) {
                //
                // for statements (for now) we only need to read from the first LRS
                // in the future it may make sense to get all from all LRSes and
                // compare to remove duplicates or allow inspection of them for differences?
                //
                // TODO: make this the first non-allowFail LRS but for now it should
                // be good enough to make it the first since we know the LMS provided
                // LRS is the first
                //
                lrs = this.recordStores[0];

                return lrs.retrieveVoidedStatement(stmtId, { callback: callback });
            }

            this.log("[warning] getVoidedStatement: No LRSs added yet (statement not retrieved)");
        }
function ( stmtId , callback ) { this . log ( "getVoidedStatement" ) ; var lrs ; if ( this . recordStores . length > 0 ) { // // for statements (for now) we only need to read from the first LRS // in the future it may make sense to get all from all LRSes and // compare to remove duplicates or allow inspection of them for differences? // // TODO: make this the first non-allowFail LRS but for now it should // be good enough to make it the first since we know the LMS provided // LRS is the first // lrs = this . recordStores [ 0 ] ; return lrs . retrieveVoidedStatement ( stmtId , { callback : callback } ) ; } this . log ( "[warning] getVoidedStatement: No LRSs added yet (statement not retrieved)" ) ; }
Calls retrieveVoidedStatement on the first LRS, provide callback to make it asynchronous

@method getVoidedStatement
@param {String} statement Statement ID to get
@param {Function} [callback] Callback function to execute on completion
@return {Array|Result} Array of results, or single result

TODO: make TinCan track voided statements it has seen in a local cache to be returned easily
Calls retrieveVoidedStatement on the first LRS provide callback to make it asynchronous