| 1307 | | if (filteredList == null) { |
| 1308 | | for (var name in params) { |
| 1309 | | output.push(this._outputParameter(params[name], name)); |
| 1310 | | } |
| | 1310 | if (params.length) { |
| | 1311 | if (filteredList == null) { |
| | 1312 | for (var i = 0; i < params.length; i++) { |
| | 1313 | output.push(this._outputParameter(null, params[i])); |
| | 1314 | } |
| | 1315 | } else { |
| | 1316 | for (var i = 0; i < filteredList.length; i++) { |
| | 1317 | var name = filteredList[i]; |
| | 1318 | output.push(this._outputParameter(null, name)); |
| | 1319 | } |
| | 1320 | } |
| 1312 | | for (var i = 0; i < filteredList.length; i++) { |
| 1313 | | var name = filteredList[i]; |
| 1314 | | output.push(this._outputParameter(params[name], name)); |
| | 1322 | if (filteredList == null) { |
| | 1323 | for (var name in params) { |
| | 1324 | output.push(this._outputParameter(params[name], name)); |
| | 1325 | } |
| | 1326 | } else { |
| | 1327 | for (var i = 0; i < filteredList.length; i++) { |
| | 1328 | var name = filteredList[i]; |
| | 1329 | output.push(this._outputParameter(params[name], name)); |
| | 1330 | } |
| 1335 | | var type = param.type; |
| 1336 | | if (type) { |
| 1337 | | var questionChar = type.indexOf("?"); |
| 1338 | | if (questionChar > 0) { |
| 1339 | | isOptional = true; |
| 1340 | | type = type.substring(0, questionChar); |
| 1341 | | } |
| 1342 | | output.push("<td class='paramType'>", this.outputItemLink(type), "</td>"); |
| | 1351 | if (param) { |
| | 1352 | var type = param.type; |
| | 1353 | if (type) { |
| | 1354 | var questionChar = type.indexOf("?"); |
| | 1355 | if (questionChar > 0) { |
| | 1356 | isOptional = true; |
| | 1357 | type = type.substring(0, questionChar); |
| | 1358 | } |
| | 1359 | output.push("<td class='paramType'>", this.outputItemLink(type), "</td>"); |
| | 1360 | } else { |
| | 1361 | output.push("<td class='paramType'> </td>"); |
| | 1362 | } |
| | 1363 | |
| | 1364 | output.push("<td class='paramName'>",name,"</td>"); |
| | 1365 | |
| | 1366 | var description = param.description; |
| | 1367 | if (description == null) description = " "; |
| | 1368 | if (isOptional) description = "<span class=paramOptional>(optional)</span> " + description; |
| | 1369 | if (isPrivate) description = "<span class=paramPrivate>(private)</span> " + description; |
| | 1370 | output.push("<td class='paramDescription'>", description, "</td>"); |
| 1344 | | output.push("<td class='paramType'> </td>"); |
| 1345 | | } |
| 1346 | | |
| 1347 | | output.push("<td class='paramName'>",name,"</td>"); |
| 1348 | | |
| 1349 | | var description = param.description; |
| 1350 | | if (description == null) description = " "; |
| 1351 | | if (isOptional) description = "<span class=paramOptional>(optional)</span> " + description; |
| 1352 | | if (isPrivate) description = "<span class=paramPrivate>(private)</span> " + description; |
| 1353 | | output.push("<td class='paramDescription'>", description, "</td>"); |
| | 1372 | output.push("<td class=paramType> </td>"); |
| | 1373 | output.push("<td class=paramName>",name,"</td>"); |
| | 1374 | output.push("<td class=paramDescription> </td>"); |
| | 1375 | } |