dist/crocodoc.viewer.js
function ajaxFail(req) {
                if (util.isFn(opt.fail)) {
                    opt.fail.call(createRequestWrapper(req));
                }
                return req;
            }
function ajaxFail(req) {
                if (util.isFn(opt.fail)) {
                    opt.fail.call(createRequestWrapper(req));
                }
                return req;
            }
function ajaxFail ( req ) { if ( util . isFn ( opt . fail ) ) { opt . fail . call ( createRequestWrapper ( req ) ) ; } return req ; }
Function to call on failed AJAX request
@returns {void}
@private
Function to call on failed AJAX request