rename variable in html2 (#20443)

This commit is contained in:
William Cheng
2025-01-11 15:52:46 +08:00
committed by GitHub
parent eb47b9d836
commit 522b134cd9
2 changed files with 8 additions and 8 deletions

View File

@@ -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