projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JsTemplate/Link.js
[gnome.introspection-doc-generator]
/
JsTemplate
/
Link.js
diff --git
a/JsTemplate/Link.js
b/JsTemplate/Link.js
index
888f3a2
..
3f1b391
100644
(file)
--- a/
JsTemplate/Link.js
+++ b/
JsTemplate/Link.js
@@
-23,10
+23,26
@@
Link = XObject.define(
Object,
{
Object,
{
+ /**
+ * url {String} url for link..
+ */
+ url: "",
+ /**
+ * text {String} text to show on link.
+ */
+
+ text : "",
+
+ /**
+ * alias {String} not sure?
+ */
alias : "",
alias : "",
+ /**
+ * src {String} not sure?
+ */
src : "",
file : "",
src : "",
file : "",
- text : "",
+
innerName : "",
classLink : false,
targetName : "",
innerName : "",
classLink : false,
targetName : "",
@@
-70,7
+86,7
@@
Link = XObject.define(
var thisLink = this;
if (this.alias) {
var thisLink = this;
if (this.alias) {
-
linkString =
this.alias.replace(/(^|[^a-z$0-9_#.:-])([|a-z$0-9_#.:-]+)($|[^a-z$0-9_#.:-])/i,
+
return
this.alias.replace(/(^|[^a-z$0-9_#.:-])([|a-z$0-9_#.:-]+)($|[^a-z$0-9_#.:-])/i,
function(match, prematch, symbolName, postmatch) {
var symbolNames = symbolName.split("|");
var links = [];
function(match, prematch, symbolName, postmatch) {
var symbolNames = symbolName.split("|");
var links = [];
@@
-82,14
+98,16
@@
Link = XObject.define(
}
);
}
}
);
}
- else if (this.src) {
- linkString = thisLink._makeSrcLink(this.src);
+ if (this.url) {
+ return thisLink._makeLink(this.url);
+ }
+ if (this.src) {
+ return thisLink._makeSrcLink(this.src);
}
}
-
else
if (this.file) {
-
linkString =
thisLink._makeFileLink(this.file);
+ if (this.file) {
+
return
thisLink._makeFileLink(this.file);
}
}
- return linkString;
},
},