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
913d72d
..
2e2d6f1
100644
(file)
--- a/
JsTemplate/Link.js
+++ b/
JsTemplate/Link.js
@@
-16,21
+16,37
@@
Link = XObject.define(
/*
* constructor
*/
/*
* constructor
*/
- function () {
+ function (opts) {
+ XObject.extend(this,opts);
},
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 : "",
- srcReplace : false,
-
+
target : function(targetName) {
target : function(targetName) {
@@
-47,8
+63,6
@@
Link = XObject.define(
},
toSrc : function(filename) {
if (typeof(filename) != 'undefined') this.src = filename;
},
toSrc : function(filename) {
if (typeof(filename) != 'undefined') this.src = filename;
- if (this.srcReplace(
-
return this;
},
return this;
},
@@
-84,6
+98,9
@@
Link = XObject.define(
}
);
}
}
);
}
+ else if (this.url) {
+ linkString = thisLink._makeLink(this.url);
+ }
else if (this.src) {
linkString = thisLink._makeSrcLink(this.src);
}
else if (this.src) {
linkString = thisLink._makeSrcLink(this.src);
}