GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #461 from BeliefYou8/UAVStackXingshengliLLL · corersky/uavstack@991ed36

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • com.creditease.uav.console/src/main/webapp/apphub/js/common
    • helper.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎com.creditease.uav.console/src/main/webapp/apphub/js/common/helper.js‎

Copy file name to clipboardExpand all lines: com.creditease.uav.console/src/main/webapp/apphub/js/common/helper.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,16 @@ var JsonHelper={
140140
if (val instanceof Array ) {
141141
var ca=[];
142142
for (var i=0;i<val.length;i++) {
143-
ca[i]=this.clone(val[i]);
143+
if(val[i] && typeof val[i]==="object") {
144+
ca[i]=this.clone(val[i]);
145+
}
146+
else {
147+
ca[i]=val[i];
148+
}
144149
}
145150
co[key]=ca;
146151
}
147-
else if (typeof val == "object" ) {
152+
else if (typeof val === "object" ) {
148153
var cv=this.clone(val);
149154
co[key]=cv;
150155
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.