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
d4cec0d
..
9782aab
100644
(file)
--- a/
JsTemplate/Link.js
+++ b/
JsTemplate/Link.js
@@
-13,47
+13,59
@@
XObject = imports.XObject.XObject;
@constructor
*/
Link = XObject.define(
@constructor
*/
Link = XObject.define(
+ /*
+ * constructor
+ */
function () {
function () {
- this.alias = "";
- this.src = "";
- this.file = "";
- this.text = "";
- this.innerName = "";
- this.classLink = false;
- this.targetName = "";
- this.target = function(targetName) {
+ },
+ Object,
+ {
+
+ alias : "",
+ src : "",
+ file : "",
+ text : "",
+ innerName : "",
+ classLink : false,
+ targetName : "",
+
+
+
+ target : function(targetName) {
if (typeof(targetName) != 'undefined') this.targetName = targetName;
return this;
if (typeof(targetName) != 'undefined') this.targetName = targetName;
return this;
- }
-
this.inner =
function(inner) {
+ }
,
+
inner :
function(inner) {
if (typeof(inner) != 'undefined') this.innerName = inner;
return this;
if (typeof(inner) != 'undefined') this.innerName = inner;
return this;
- }
-
this.withText =
function(text) {
+ }
,
+
withText :
function(text) {
if (typeof(text) != 'undefined') this.text = text;
return this;
if (typeof(text) != 'undefined') this.text = text;
return this;
- }
- t
his.toSrc =
function(filename) {
+ }
,
+ t
oSrc :
function(filename) {
if (typeof(filename) != 'undefined') this.src = filename;
if (typeof(filename) != 'undefined') this.src = filename;
+
+
return this;
return this;
- }
- t
his.toSymbol =
function(alias) {
+ }
,
+ t
oSymbol :
function(alias) {
if (typeof(alias) != 'undefined') {
this.alias = new String(alias);
}
return this;
if (typeof(alias) != 'undefined') {
this.alias = new String(alias);
}
return this;
- }
- t
his.toClass =
function(alias) {
+ }
,
+ t
oClass :
function(alias) {
this.classLink = true;
return this.toSymbol(alias);
this.classLink = true;
return this.toSymbol(alias);
- }
- t
his.toFile =
function(file) {
+ }
,
+ t
oFile :
function(file) {
if (typeof(file) != 'undefined') this.file = file;
return this;
if (typeof(file) != 'undefined') this.file = file;
return this;
- }
+ }
,
- t
his.toString =
function() {
+ t
oString :
function() {
var linkString;
var thisLink = this;
var linkString;
var thisLink = this;
@@
-78,10
+90,13
@@
Link = XObject.define(
}
return linkString;
}
return linkString;
- }
- },
- Object,
- {
+ },
+
+
+
+
+
+
/** Create a link to a snother symbol. */
_makeSymbolLink : function(alias) {
/** Create a link to a snother symbol. */
_makeSymbolLink : function(alias) {