Skip to content

Commit f204288

Browse files
committed
add comment
1 parent dae1b3e commit f204288

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/enum.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ function Enum(name, values, options, comment, comments, valuesOptions) {
5656
*/
5757
this.valuesOptions = valuesOptions;
5858

59+
/**
60+
* Values features, if any
61+
* @type {Object<string, Object<string, *>>|undefined}
62+
*/
5963
this._valuesFeatures = {};
6064

6165
/**
@@ -151,16 +155,7 @@ Enum.prototype.add = function add(name, id, comment, options) {
151155
this.valuesOptions = {};
152156
this.valuesOptions[name] = options || null;
153157

154-
// console.log(options)
155-
// if (/features/.test(options)) {
156-
// var features = Object.keys(this.valuesOptions).find(x => {return x.hasOwnProperty("features")});
157-
// this._valuesFeatures[name] = features ?? {};
158-
// console.log(this._valuesFeatures[name])
159-
// }
160-
161-
console.log(this.valuesOptions)
162158
for (var key in this.valuesOptions) {
163-
console.log(this.valuesOptions[key])
164159
var features = Array.isArray(this.valuesOptions) ? this.valuesOptions[key].find(x => {return x.hasOwnProperty("features")}) : this.valuesOptions[key] === "features";
165160
if (features) {
166161
if (!this._valuesFeatures) {
@@ -171,9 +166,6 @@ Enum.prototype.add = function add(name, id, comment, options) {
171166
}
172167
}
173168

174-
175-
// console.log(this.valuesOptions)
176-
177169
this.comments[name] = comment || null;
178170
return this;
179171
};

0 commit comments

Comments
 (0)