diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-02-12 18:29:37 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-02-12 18:29:37 +0000 |
commit | 2df07ad811f0929103ef03c4ac84fdbfde00412f (patch) | |
tree | e6ee1cf1e302ef715b928e51745d85af35dd5780 /sca-cpp/trunk/modules/js/htdocs/scdl.js | |
parent | 085c66b5066a1b47d3980496069762361aa98bba (diff) |
Add a few sample composites and a few fixes to the existing ones.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1070123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/js/htdocs/scdl.js')
-rw-r--r-- | sca-cpp/trunk/modules/js/htdocs/scdl.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/js/htdocs/scdl.js b/sca-cpp/trunk/modules/js/htdocs/scdl.js index 73d07b4a1c..f1bf498305 100644 --- a/sca-cpp/trunk/modules/js/htdocs/scdl.js +++ b/sca-cpp/trunk/modules/js/htdocs/scdl.js @@ -79,14 +79,17 @@ scdl.documentation = function(l) { if (!elementHasValue(car(d))) return null; var v = elementValue(car(d)); - if (v == 'gt') - return '>' - if (v == 'lt') - return '<'; return v; }; /** + * Returns the title of a component or componentType. + */ +scdl.title = function(l) { + return namedAttributeValue("'t:title", l); +}; + +/** * Returns the color of a component or componentType. */ scdl.color = function(l) { @@ -217,6 +220,8 @@ scdl.properties = function(l) { * Returns the value of a property. */ scdl.propertyValue = function(l) { + if (!elementHasValue(l)) + return ''; return elementValue(l); }; |