demo/editor/kissy.js
function () {
            var self = this,
                t,
                fullPathUri,
                packageBaseUri,
                packageInfo,
                packageName,
                path;
            if (!self.fullPathUri) {
                if (self.fullpath) {
                    fullPathUri = new S.Uri(self.fullpath);
                } else {
                    packageInfo = self.getPackage();
                    packageBaseUri = packageInfo.getBaseUri();
                    path = self.getPath();
                    // #262
                    if (packageInfo.isIgnorePackageNameInUri() &&
                        // native mod does not allow ignore package name
                        (packageName = packageInfo.getName())) {
                        path = Path.relative(packageName, path);
                    }
                    fullPathUri = packageBaseUri.resolve(path);
                    if (t = self.getTag()) {
                        t += '.' + self.getType();
                        fullPathUri.query.set('t', t);
                    }
                }
                self.fullPathUri = fullPathUri;
            }
            return self.fullPathUri;
        }
function () {
            var self = this,
                t,
                fullPathUri,
                packageBaseUri,
                packageInfo,
                packageName,
                path;
            if (!self.fullPathUri) {
                if (self.fullpath) {
                    fullPathUri = new S.Uri(self.fullpath);
                } else {
                    packageInfo = self.getPackage();
                    packageBaseUri = packageInfo.getBaseUri();
                    path = self.getPath();
                    // #262
                    if (packageInfo.isIgnorePackageNameInUri() &&
                        // native mod does not allow ignore package name
                        (packageName = packageInfo.getName())) {
                        path = Path.relative(packageName, path);
                    }
                    fullPathUri = packageBaseUri.resolve(path);
                    if (t = self.getTag()) {
                        t += '.' + self.getType();
                        fullPathUri.query.set('t', t);
                    }
                }
                self.fullPathUri = fullPathUri;
            }
            return self.fullPathUri;
        }
function ( ) { var self = this , t , fullPathUri , packageBaseUri , packageInfo , packageName , path ; if ( ! self . fullPathUri ) { if ( self . fullpath ) { fullPathUri = new S . Uri ( self . fullpath ) ; } else { packageInfo = self . getPackage ( ) ; packageBaseUri = packageInfo . getBaseUri ( ) ; path = self . getPath ( ) ; // #262 if ( packageInfo . isIgnorePackageNameInUri ( ) && // native mod does not allow ignore package name ( packageName = packageInfo . getName ( ) ) ) { path = Path . relative ( packageName , path ) ; } fullPathUri = packageBaseUri . resolve ( path ) ; if ( t = self . getTag ( ) ) { t += '.' + self . getType ( ) ; fullPathUri . query . set ( 't' , t ) ; } } self . fullPathUri = fullPathUri ; } return self . fullPathUri ; }
Get the fullpath uri of current module if load dynamically
@return {KISSY.Uri}
Get the fullpath uri of current module if load dynamically