libs/RequestContainer.js
/**
 * a helper function indicates a promise complete callback
 */
a helper function indicates a promise complete callback
a helper function indicates a promise complete callback
function completeWrapper(promise) {
    return {
        complete: function (action) {
            return promise.then(function (response) {
                action && action();
                return response;
            }, function (error) {
                action && action();
                return error;
            });
        }
    };
}
function completeWrapper ( promise ) { return { complete : function ( action ) { return promise . then ( function ( response ) { action && action ( ) ; return response ; } , function ( error ) { action && action ( ) ; return error ; } ) ; } } ; }
a helper function indicates a promise complete callback
a helper function indicates a promise complete callback