X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JsTemplate%2FLink.js;h=383ee918cb930f5512a21c97814d6dbc71175b23;hp=fbed0b2a94f4857af2ccc6de35d897c01e32164f;hb=d90ce064d76bb78da4e49298c630fe26fe968dd9;hpb=602613f9dcb0bbf371ebc7de8c38c2afcff85498 diff --git a/JsTemplate/Link.js b/JsTemplate/Link.js index fbed0b2..383ee91 100644 --- a/JsTemplate/Link.js +++ b/JsTemplate/Link.js @@ -16,25 +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 : "", - /** - * source Replacement - * eg. '/var/www/xxx:symbol' - */ - srcReplace : false, - + target : function(targetName) { @@ -51,8 +63,6 @@ Link = XObject.define( }, toSrc : function(filename) { if (typeof(filename) != 'undefined') this.src = filename; - if (this.srcReplace( - return this; },