svg2-tools: Don't list attribute categories as elements in element su...

details:   https://svgwg.org/hg/svg2-tools/rev/6deaf3de95bd
branches:  
changeset: 59:6deaf3de95bd
user:      Cameron McCormack <cam@mcc.id.au>
date:      Tue Aug 21 15:34:52 2012 +1000
description:
Don't list attribute categories as elements in element summary boxes.

diffstat:

 publish/processing.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (22 lines):

diff --git a/publish/processing.js b/publish/processing.js
--- a/publish/processing.js
+++ b/publish/processing.js
@@ -450,17 +450,17 @@ function formatElementAttributes(conf, e
   var ul = utils.parse('<ul class="no-bullets"></ul>');
   element.attributeCategories.forEach(function(name) {
     var cat = conf.definitions.attributeCategories[name];
     if (!cat) {
       return utils.parse('<li><a href="data:," style="background: red; color: white">@@ unknown attribute category "{{name}}"</a><li>', { name: name });
     }
     var attributes = cat.commonAttributes.concat(cat.attributes.map(function(a) { return a.name }));
     // map(function(name) { return element.commonAttributes[name] }).concat(cat.attributes);
-    var li = utils.parse('<li><a href="{{href}}">{{name}} elements</a><span class="expanding"> — {{attributes}}</span></li>',
+    var li = utils.parse('<li><a href="{{href}}">{{name}} attributes</a><span class="expanding"> — {{attributes}}</span></li>',
                          { href: cat.href,
                            name: cat.name,
                            attributes: utils.fragment(attributes.map(function(a) { return conf.definitions.formatElementAttributeLink(element.name, a, n) }), ', ') });
     ul.appendChild(li);
   });
 
   element.commonAttributes.forEach(function(name) {
     var li = utils.parse('<li>{{attribute}}</li>',

Received on Tuesday, 21 August 2012 05:35:22 UTC