forked from loafle/openapi-generator-original
rename variable in html2 (#20443)
This commit is contained in:
parent
eb47b9d836
commit
522b134cd9
@ -111,10 +111,10 @@
|
||||
} 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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user