JsTemplate/Link.js
[gnome.introspection-doc-generator] / JsTemplate / Link.js
index 913d72d..383ee91 100644 (file)
@@ -16,21 +16,37 @@ Link = XObject.define(
     /*
     * constructor
     */ 
-    function () {
+    function (opts) {
+        XObject.extend(this,opts);
         
     }, 
     Object,
     {
         
+         /**
+         * url {String} url for link..
+         */
+        url: "",
+        /**
+         * text {String} text to show on link.
+         */
+        
+        text : "",
+        
+        /**
+         * alias {String} not sure?
+         */
         alias : "",
+        /**
+         * alias {String} not sure?
+         */
         src : "",
         file : "",
-        text : "",
+        
         innerName : "",
         classLink : false,
         targetName : "",
-        srcReplace : false, 
-        
+    
         
         
         target : function(targetName) {
@@ -47,8 +63,6 @@ Link = XObject.define(
         },
         toSrc : function(filename) {
             if (typeof(filename) != 'undefined') this.src = filename;
-            if (this.srcReplace(
-            
             
             return this;
         },