code: function () {
          var location = this._location;
          var origin = location.origin;
  
          // Older browsers, especially IE, don't have origin
          if (!origin) {
            origin = location.protocol + '//' + location.hostname;
  
            if (location.port) {
              origin += ':' + location.port;
            }
          }
  
          return origin;
        }
docs: @private
  
  Returns location.origin or builds it if device doesn't support it.
  
  @method _getOrigin