Commit 92ef2baf authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete Common_CopyObj2

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64384 954022d7-b5bf-4e40-9824-e11837661b57
parent 2a149630
......@@ -27,38 +27,3 @@ function Common_CopyObj(Obj)
}
return c;
};
\ No newline at end of file
function Common_CopyObj2(Dst, Obj)
{
if( !Obj || !('object' == typeof(Obj) || 'array' == typeof(Obj)) )
{
return;
}
if (Dst == null)
Dst = {};
var p, v;
for(p in Obj)
{
if(Obj.hasOwnProperty(p))
{
v = Obj[p];
if(v && 'object' === typeof v )
{
if ( "object" != typeof(Dst[p]) )
{
if ( "undefined" != typeof(v.splice) )
Dst[p] = [];
else
Dst[p] = {};
}
Common_CopyObj2(Dst[p], v);
}
else
{
Dst[p] = v;
}
}
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment