@@ -134,52 +134,52 @@ module.exports.parseData = function (data, file) {
134
134
135
135
var methods = [ ] ;
136
136
137
- data . forEach ( function ( data_method ) {
137
+ data . forEach ( function ( item ) {
138
138
139
139
var method = { } ;
140
140
141
- if ( ! data_method . ignore && data_method . ctx ) {
141
+ if ( ! item . ignore && item . ctx ) {
142
142
143
- method . uid = module . exports . formatStringForUID ( file + '-' + data_method . ctx . string ) ;
143
+ method . uid = module . exports . formatStringForUID ( file + '-' + item . ctx . string ) ;
144
144
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 ) ;
148
148
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 ;
151
151
152
152
method . tags = { } ;
153
153
method . tags . example = [ ] ;
154
154
155
- data_method . tags . forEach ( function ( data_tag ) {
155
+ item . tags . forEach ( function ( tag_data ) {
156
156
157
157
var tag = { } ;
158
158
159
- if ( method . tags [ data_tag . type ] === undefined ) {
159
+ if ( method . tags [ tag_data . type ] === undefined ) {
160
160
161
- method . tags [ data_tag . type ] = [ ] ;
161
+ method . tags [ tag_data . type ] = [ ] ;
162
162
163
163
}
164
164
165
- if ( data_tag . types && data_tag . types . length ) {
165
+ if ( tag_data . types && tag_data . types . length ) {
166
166
167
- if ( data_tag . name ) {
167
+ if ( tag_data . name ) {
168
168
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 ;
171
171
172
172
}
173
173
174
- tag . types = data_tag . types ;
174
+ tag . types = tag_data . types ;
175
175
176
- tag . description = data_tag . description ;
176
+ tag . description = tag_data . description ;
177
177
178
- method . tags [ data_tag . type ] . push ( tag ) ;
178
+ method . tags [ tag_data . type ] . push ( tag ) ;
179
179
180
- } else if ( data_tag . string ) {
180
+ } else if ( tag_data . string ) {
181
181
182
- method . tags [ data_tag . type ] . push ( data_tag . string ) ;
182
+ method . tags [ tag_data . type ] . push ( tag_data . string ) ;
183
183
184
184
}
185
185
0 commit comments