assets/js/lib/jquery.couch.js
function(docId, options, ajaxOptions) {
          options = options || {};
          if (db_opts.attachPrevRev || options.attachPrevRev) {
            $.extend(options, {
              beforeSuccess : function(req, doc) {
                rawDocs[doc._id] = {
                  rev : doc._rev,
                  raw : req.responseText
                };
              }
            });
          } else {
            $.extend(options, {
              beforeSuccess : function(req, doc) {
                if (doc["jquery.couch.attachPrevRev"]) {
                  rawDocs[doc._id] = {
                    rev : doc._rev,
                    raw : req.responseText
                  };
                }
              }
            });
          }
          ajax({url: this.uri + encodeDocId(docId) + encodeOptions(options)},
            options,
            "The document could not be retrieved",
            ajaxOptions
          );
        }
function(docId, options, ajaxOptions) {
          options = options || {};
          if (db_opts.attachPrevRev || options.attachPrevRev) {
            $.extend(options, {
              beforeSuccess : function(req, doc) {
                rawDocs[doc._id] = {
                  rev : doc._rev,
                  raw : req.responseText
                };
              }
            });
          } else {
            $.extend(options, {
              beforeSuccess : function(req, doc) {
                if (doc["jquery.couch.attachPrevRev"]) {
                  rawDocs[doc._id] = {
                    rev : doc._rev,
                    raw : req.responseText
                  };
                }
              }
            });
          }
          ajax({url: this.uri + encodeDocId(docId) + encodeOptions(options)},
            options,
            "The document could not be retrieved",
            ajaxOptions
          );
        }
function ( docId , options , ajaxOptions ) { options = options || { } ; if ( db_opts . attachPrevRev || options . attachPrevRev ) { $ . extend ( options , { beforeSuccess : function ( req , doc ) { rawDocs [ doc . _id ] = { rev : doc . _rev , raw : req . responseText } ; } } ) ; } else { $ . extend ( options , { beforeSuccess : function ( req , doc ) { if ( doc [ "jquery.couch.attachPrevRev" ] ) { rawDocs [ doc . _id ] = { rev : doc . _rev , raw : req . responseText } ; } } } ) ; } ajax ( { url : this . uri + encodeDocId ( docId ) + encodeOptions ( options ) } , options , "The document could not be retrieved" , ajaxOptions ) ; }
Returns the specified doc from the specified db.
@see <a href="http://techzone.couchbase.com/sites/default/files/
uploads/all/documentation/couchbase-api-dbdoc.html#couchbase-api-
dbdoc_db-doc_get">docs for GET /db/doc</a>
@param {String} docId id of document to fetch
@param {ajaxSettings} options <a href="http://api.jquery.com/
jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
@param {ajaxSettings} ajaxOptions <a href="http://api.jquery.com/
jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
Returns the specified doc from the specified db .