Skip to content

Commit bdccd92

Browse files
committed
Changed variable names.
1 parent 30223dd commit bdccd92

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

lib/utils.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -134,52 +134,52 @@ module.exports.parseData = function (data, file) {
134134

135135
var methods = [];
136136

137-
data.forEach(function (data_method) {
137+
data.forEach(function (item) {
138138

139139
var method = {};
140140

141-
if (!data_method.ignore && data_method.ctx) {
141+
if (!item.ignore && item.ctx) {
142142

143-
method.uid = module.exports.formatStringForUID(file + '-' + data_method.ctx.string);
143+
method.uid = module.exports.formatStringForUID(file + '-' + item.ctx.string);
144144

145-
method.isPrivate = data_method.isPrivate;
146-
method.type = data_method.ctx.type;
147-
method.name = module.exports.formatStringForName(data_method.ctx.string);
145+
method.isPrivate = item.isPrivate;
146+
method.type = item.ctx.type;
147+
method.name = module.exports.formatStringForName(item.ctx.string);
148148

149-
method.description = data_method.description.summary;
150-
method.body = data_method.description.body;
149+
method.description = item.description.summary;
150+
method.body = item.description.body;
151151

152152
method.tags = {};
153153
method.tags.example = [];
154154

155-
data_method.tags.forEach(function (data_tag) {
155+
item.tags.forEach(function (tag_data) {
156156

157157
var tag = {};
158158

159-
if (method.tags[data_tag.type] === undefined) {
159+
if (method.tags[tag_data.type] === undefined) {
160160

161-
method.tags[data_tag.type] = [];
161+
method.tags[tag_data.type] = [];
162162

163163
}
164164

165-
if (data_tag.types && data_tag.types.length) {
165+
if (tag_data.types && tag_data.types.length) {
166166

167-
if (data_tag.name) {
167+
if (tag_data.name) {
168168

169-
tag.name = data_tag.name.replace(/^\[|\]$/g, '');
170-
tag.isOptional = data_tag.optional;
169+
tag.name = tag_data.name.replace(/^\[|\]$/g, '');
170+
tag.isOptional = tag_data.optional;
171171

172172
}
173173

174-
tag.types = data_tag.types;
174+
tag.types = tag_data.types;
175175

176-
tag.description = data_tag.description;
176+
tag.description = tag_data.description;
177177

178-
method.tags[data_tag.type].push(tag);
178+
method.tags[tag_data.type].push(tag);
179179

180-
} else if (data_tag.string) {
180+
} else if (tag_data.string) {
181181

182-
method.tags[data_tag.type].push(data_tag.string);
182+
method.tags[tag_data.type].push(tag_data.string);
183183

184184
}
185185

0 commit comments

Comments
 (0)