src/js/misc.js
function() {
        if (this.path === null) {
            return null;
        } else {
            var i = this.path.lastIndexOf('/');
            return (i < 0 || this.path === '/') ? null
                                                : new URI(this.scheme,
                                                          this.host,
                                                          this.port,
                                                          this.path.substring(0, i),
                                                          this.qs);
        }
    }
function() {
        if (this.path === null) {
            return null;
        } else {
            var i = this.path.lastIndexOf('/');
            return (i < 0 || this.path === '/') ? null
                                                : new URI(this.scheme,
                                                          this.host,
                                                          this.port,
                                                          this.path.substring(0, i),
                                                          this.qs);
        }
    }
function ( ) { if ( this . path === null ) { return null ; } else { var i = this . path . lastIndexOf ( '/' ) ; return ( i < 0 || this . path === '/' ) ? null : new URI ( this . scheme , this . host , this . port , this . path . substring ( 0 , i ) , this . qs ) ; } }
Get a parent URI.
@method getParent
@return {zebkit.URI} a parent URI.
Get a parent URI .