This commit is contained in:
John Vandenberg
2025-01-11 15:44:42 +08:00
committed by GitHub
parent 29f7c2ea0b
commit eb47b9d836
27 changed files with 62 additions and 62 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 propt in currentNode){
if (currentNode.hasOwnProperty(propt)) {
currentChild = currentNode[propt]
if (id == propt) {
for(var prompt in currentNode){
if (currentNode.hasOwnProperty(prompt)) {
currentChild = currentNode[prompt]
if (id == prompt) {
return currentChild;
} else {
// Search in the current child