Changeset 37804 for main/trunk/greenstone3/src
- Timestamp:
- 2023-07-06T19:25:53+12:00 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java
r37545 r37804 936 936 ) 937 937 { 938 if (!isRootObject) { 939 buffer.append(objectPath + "??={};\n"); 940 return; 941 } 938 939 // the ?? isn't supported in some older versions of safari and firefox (as run on 32 bit linux test machine) 940 941 //if (!isRootObject) { 942 ////buffer.append(objectPath + "??={};\n"); 943 // Nullish coalescing operator https://plainenglish.io/blog/javascript-operator 944 // Nullish coalescing operator with assignment https://stackoverflow.com/questions/71238309/what-is-double-question-mark-equal 945 //buffer.append("if ("+objectPath+" == null || "+objectPath+" == undefined) {"+objectPath+"={};}\n"); // untested 946 //return; 947 //} 948 942 949 943 950 buffer.append("if(typeof " + objectPath + "===\"undefined\"){" + objectPath + "={};}\n");
Note:
See TracChangeset
for help on using the changeset viewer.