X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JsTemplate%2FLink.js;h=d4cec0df2e448b21fb0d77f9c2c7edcb29765136;hp=a84e96f6eef063a8dc3ad228cafd0b0403a5e815;hb=396ddd8e8de18761ffffca689932d3c90ece298f;hpb=d56985f1898989ac6236528f762e69837f185914 diff --git a/JsTemplate/Link.js b/JsTemplate/Link.js index a84e96f..d4cec0d 100644 --- a/JsTemplate/Link.js +++ b/JsTemplate/Link.js @@ -127,11 +127,11 @@ Link = XObject.define( if (!linkTo.is("CONSTRUCTOR") && !linkTo.isNamespace) { // it's a method or property linkPath = escape(linkTo.memberOf) || "_global_"; - linkPath += import.JSDOC.Options.Options.ext + "#" + Link.symbolNameToLinkName(linkTo); + linkPath += imports.JSDOC.Options.Options.ext + "#" + Link.symbolNameToLinkName(linkTo); } else { linkPath = escape(linkTo.alias); - linkPath += import.JSDOC.Options.Options.ext + (this.classLink? "":"#" + Link.hashPrefix + "constructor"); + linkPath += imports.JSDOC.Options.Options.ext + (this.classLink? "":"#" + Link.hashPrefix + "constructor"); } //linkPath = linkBase + linkPath; fullLinkPath = linkBase + linkPath; @@ -157,9 +157,9 @@ Link = XObject.define( var srcFile = srcFilePath.replace(/\.\.?[\\\/]/g, "").replace(/[:\\\/]/g, "."); // was _ var lsrcFile = srcFilePath.replace(/\.\.?[\\\/]/g, "").replace(/[:\\\/]/g, "."); var outFilePath = Link.base + '/symbols/' + srcFile.replace(/.js$/, '') + - import.JSDOC.Options.Options.publishExt; + imports.JSDOC.Options.Options.publishExt; - if (!this.text) this.text = FilePath.fileName(srcFilePath); + if (!this.text) this.text = srcFilePath; //FilePath.fileName(srcFilePath); return ""+this.text+""; },