CB-12697 Updated checked-in node_modules

This commit is contained in:
Steve Gill
2017-04-24 21:56:28 -07:00
parent e13e15d3e9
commit cadea2f6c3
12 changed files with 101 additions and 52 deletions
+10
View File
@@ -116,6 +116,16 @@ ConfigParser.prototype = {
var el = findOrCreate(this.doc, 'name');
el.text = name;
},
shortName: function() {
return this.doc.find('name').attrib['short'] || this.name();
},
setShortName: function(shortname) {
var el = findOrCreate(this.doc, 'name');
if (!el.text) {
el.text = shortname;
}
el.attrib['short'] = shortname;
},
description: function() {
return getNodeTextSafe(this.doc.find('description'));
},