demo/editor/kissy.js
function (other) {
            var self = this;
            // port and hostname has to be same
            return equalsIgnoreCase(self.hostname, other['hostname']) &&
                equalsIgnoreCase(self.scheme, other['scheme']) &&
                equalsIgnoreCase(self.port, other['port']);
        }
function (other) {
            var self = this;
            // port and hostname has to be same
            return equalsIgnoreCase(self.hostname, other['hostname']) &&
                equalsIgnoreCase(self.scheme, other['scheme']) &&
                equalsIgnoreCase(self.port, other['port']);
        }
function ( other ) { var self = this ; // port and hostname has to be same return equalsIgnoreCase ( self . hostname , other [ 'hostname' ] ) && equalsIgnoreCase ( self . scheme , other [ 'scheme' ] ) && equalsIgnoreCase ( self . port , other [ 'port' ] ) ; }
Judge whether two uri has same domain.
@param {KISSY.Uri} other
@return {Boolean}
Judge whether two uri has same domain .