unknown 5 years ago
parent
commit
5ac4d10ff9

+ 1 - 0
o2web/.gitignore

@@ -2,6 +2,7 @@
 /coverage/
 /dest/
 /out/
+/jsdoc/
 /node_modules/
 npm-debug.log
 /test/

+ 9 - 0
o2web/jsdoc.conf.json

@@ -1,8 +1,16 @@
 {
+    "opts": {
+        "encoding": "utf8",               // same as -e utf8
+        "destination": "./o2web/jsdoc/",          // same as -d ./out/
+        "recurse": true                  // same as -r
+//        "template": "templates/default",  // same as -t templates/default
+//        "tutorials": "path/to/tutorials" // same as -u path/to/tutorials
+    },
     "tags": {
         "allowUnknownTags": true
     },
     "source": {
+        "include": ["./o2web/source/x_component_process_Xform"],
         "includePattern": ".+\\.js(doc|x)?$",
         "excludePattern": "(^|\\/|\\\\)_"
     },
@@ -18,3 +26,4 @@
         }
     }
 }
+//执行命令: jsdoc -c ./o2web/jsdoc.conf.json

+ 2 - 2
o2web/source/x_component_process_Xform/DatagridMobile.js

@@ -1382,7 +1382,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
                     var moduleTd = td.retrieve("module");
                     if (moduleTd){
                         this.form.modules.erase(moduleTd);
-                        delete moduleTd;
+                        moduleTd = null;
                     }
                 }
                 var ths = table.getElements("th");
@@ -1391,7 +1391,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
                     var moduleTh = th.retrieve("module");
                     if (moduleTh){
                         this.form.modules.erase(moduleTh);
-                        delete moduleTh;
+                        moduleTh = null;
                     }
                 }
             }

+ 1 - 1
o2web/source/x_component_process_Xform/DatagridPC.js

@@ -1148,7 +1148,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
 					var module = td.retrieve("module");
 					if (module){
 						this.form.modules.erase(module);
-						delete module;
+						module = null;
 					}
 				}
 			}