stackmob-js-0.9.2.js
function() {
      if( StackMob['useRelativePathForAjax'] ){
        // Build "relative path" (also used for OAuth signing)
        return StackMob.apiDomain ? StackMob.apiDomain : (this.getHostname() + (this.getPort() ? ':' + this.getPort() : '')) + '/';
      } else {
        // Use absolute path and operate through CORS
        return StackMob.apiDomain ? StackMob.apiDomain : (StackMob['API_SERVER'] + '/');
      }
    }
function() {
      if( StackMob['useRelativePathForAjax'] ){
        // Build "relative path" (also used for OAuth signing)
        return StackMob.apiDomain ? StackMob.apiDomain : (this.getHostname() + (this.getPort() ? ':' + this.getPort() : '')) + '/';
      } else {
        // Use absolute path and operate through CORS
        return StackMob.apiDomain ? StackMob.apiDomain : (StackMob['API_SERVER'] + '/');
      }
    }
function ( ) { if ( StackMob [ 'useRelativePathForAjax' ] ) { // Build "relative path" (also used for OAuth signing) return StackMob . apiDomain ? StackMob . apiDomain : ( this . getHostname ( ) + ( this . getPort ( ) ? ':' + this . getPort ( ) : '' ) ) + '/' ; } else { // Use absolute path and operate through CORS return StackMob . apiDomain ? StackMob . apiDomain : ( StackMob [ 'API_SERVER' ] + '/' ) ; } }
This is an internally used method to get the API URL no matter what the context - development, production, etc.  This envelopes `getDevAPIBase` and `getProdAPIBase` in that this method is smart enough to choose which of the URLs to use.
This is an internally used method to get the API URL no matter what the context - development production etc . This envelopes getDevAPIBase and getProdAPIBase in that this method is smart enough to choose which of the URLs to use .