forked from loafle/openapi-generator-original
rename variable in html2 (#20443)
This commit is contained in:
@@ -163,10 +163,10 @@ h={};g()}};typeof define==="function"&&define.amd&&define("google-code-prettify"
|
||||
} else {
|
||||
// Use a for loop instead of forEach to avoid nested functions
|
||||
// Otherwise "return" will not work properly
|
||||
for(var prompt in currentNode){
|
||||
if (currentNode.hasOwnProperty(prompt)) {
|
||||
currentChild = currentNode[prompt]
|
||||
if (id == prompt) {
|
||||
for(var property in currentNode){
|
||||
if (currentNode.hasOwnProperty(property)) {
|
||||
currentChild = currentNode[property]
|
||||
if (id == property) {
|
||||
return currentChild;
|
||||
} else {
|
||||
// Search in the current child
|
||||
|
||||
Reference in New Issue
Block a user