+return {
+ getLabel: function(of, name) {
+ return (names[of] && (names[of][name] || name)) || '?';
+ },
+ getTagLabel: function(tagName) {
+ return this.getLabel('tag', tagName);
+ },
+ getClassLabel: function(className) {
+ return this.getLabel('class', className);
+ }
+};
+