File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
modules/openapi-generator/src/main/resources/htmlDocs2
samples/documentation/html2 Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 111111 } else {
112112 // Use a for loop instead of forEach to avoid nested functions
113113 // Otherwise " return" will not work properly
114- for(var prompt in currentNode){
115- if (currentNode.hasOwnProperty(prompt )) {
116- currentChild = currentNode[prompt ]
117- if (id == prompt ) {
114+ for(var property in currentNode){
115+ if (currentNode.hasOwnProperty(property )) {
116+ currentChild = currentNode[property ]
117+ if (id == property ) {
118118 return currentChild;
119119 } else {
120120 // Search in the current child
Original file line number Diff line number Diff line change 163163 } else {
164164 // Use a for loop instead of forEach to avoid nested functions
165165 // Otherwise "return" will not work properly
166- for(var prompt in currentNode){
167- if (currentNode.hasOwnProperty(prompt )) {
168- currentChild = currentNode[prompt ]
169- if (id == prompt ) {
166+ for(var property in currentNode){
167+ if (currentNode.hasOwnProperty(property )) {
168+ currentChild = currentNode[property ]
169+ if (id == property ) {
170170 return currentChild;
171171 } else {
172172 // Search in the current child
You can’t perform that action at this time.
0 commit comments