Skip to content

Commit

Permalink
Merge pull request #461 from BeliefYou8/UAVStackXingshengliLLL
Browse files Browse the repository at this point in the history
Copy function bugFix in the helper.js
  • Loading branch information
zengli00 authored Dec 14, 2018
2 parents c384157 + de1c2ad commit 991ed36
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,16 @@ var JsonHelper={
if (val instanceof Array ) {
var ca=[];
for (var i=0;i<val.length;i++) {
ca[i]=this.clone(val[i]);
if(val[i] && typeof val[i]==="object") {
ca[i]=this.clone(val[i]);
}
else {
ca[i]=val[i];
}
}
co[key]=ca;
}
else if (typeof val == "object" ) {
else if (typeof val === "object" ) {
var cv=this.clone(val);
co[key]=cv;
}
Expand Down

0 comments on commit 991ed36

Please sign in to comment.