File tree Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Expand file tree Collapse file tree 2 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -1058,7 +1058,7 @@ var require;
1058
1058
}
1059
1059
1060
1060
// 配置信息对象clone返回,避免返回结果对象被用户程序修改可能导致的问题
1061
- return clone ( requireConf ) ;
1061
+ // return clone(requireConf);
1062
1062
} ;
1063
1063
1064
1064
/**
@@ -1068,26 +1068,26 @@ var require;
1068
1068
* @param {* } source 要克隆的对象
1069
1069
* @return {* }
1070
1070
*/
1071
- function clone ( source ) {
1072
- var result = source ;
1073
-
1074
- if ( source instanceof Array ) {
1075
- result = [ ] ;
1076
- each ( source , function ( item , i ) {
1077
- result [ i ] = clone ( item ) ;
1078
- } ) ;
1079
- }
1080
- else if ( typeof source === 'object' ) {
1081
- result = { } ;
1082
- for ( var key in source ) {
1083
- if ( source . hasOwnProperty ( key ) ) {
1084
- result [ key ] = clone ( source [ key ] ) ;
1085
- }
1086
- }
1087
- }
1088
-
1089
- return result ;
1090
- }
1071
+ // function clone(source) {
1072
+ // var result = source;
1073
+
1074
+ // if (source instanceof Array) {
1075
+ // result = [];
1076
+ // each(source, function (item, i) {
1077
+ // result[i] = clone(item);
1078
+ // });
1079
+ // }
1080
+ // else if (typeof source === 'object') {
1081
+ // result = {};
1082
+ // for (var key in source) {
1083
+ // if (source.hasOwnProperty(key)) {
1084
+ // result[key] = clone(source[key]);
1085
+ // }
1086
+ // }
1087
+ // }
1088
+
1089
+ // return result;
1090
+ // }
1091
1091
1092
1092
// 初始化时需要创建配置索引
1093
1093
createConfIndex ( ) ;
Original file line number Diff line number Diff line change 327
327
< td > < input value ="complexNoRequests_alone " type ="button " data-ignore ="timestat "> </ td >
328
328
< td class ="uncheck "> </ td >
329
329
</ tr >
330
+ <!-- see #10
330
331
<tr>
331
332
<th colspan="2" align="left">Read Conf:</th>
332
333
</tr>
333
334
<tr>
334
335
<td><input value="readConfig" type="button" data-ignore="timestat"></td>
335
336
<td class="uncheck"></td>
336
337
</tr>
338
+ -->
337
339
</ table >
338
340
339
341
< script >
You can’t perform that action at this time.
0 commit comments